Merge pull request #5782 from naderman/t/github-integration
GitHub integrations generate access tokens containing a dotpull/5784/head
commit
edb05d1385
|
@ -100,7 +100,7 @@ abstract class BaseIO implements IOInterface, LoggerInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($githubOauth as $domain => $token) {
|
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.'"');
|
throw new \UnexpectedValueException('Your github oauth token for '.$domain.' contains invalid characters: "'.$token.'"');
|
||||||
}
|
}
|
||||||
$this->checkAndSetAuthentication($domain, $token, 'x-oauth-basic');
|
$this->checkAndSetAuthentication($domain, $token, 'x-oauth-basic');
|
||||||
|
|
Loading…
Reference in New Issue