Explorar o código

GitHub integrations generate access tokens containing a dot

Nils Adermann %!s(int64=8) %!d(string=hai) anos
pai
achega
ad41c324d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/IO/BaseIO.php

+ 1 - 1
src/Composer/IO/BaseIO.php

@@ -100,7 +100,7 @@ abstract class BaseIO implements IOInterface, LoggerInterface
         }
 
         foreach ($githubOauth as $domain => $token) {
-            if (!preg_match('{^[a-z0-9]+$}', $token)) {
+            if (!preg_match('{^[.a-z0-9]+$}', $token)) {
                 throw new \UnexpectedValueException('Your github oauth token for '.$domain.' contains invalid characters: "'.$token.'"');
             }
             $this->checkAndSetAuthentication($domain, $token, 'x-oauth-basic');