Created
June 21, 2021 21:35
-
-
Save valerio-bozzolan/84364c28a3bba13751c504214016adcf to your computer and use it in GitHub Desktop.
Fix Composer 1.8.* GitHub token parser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103,105c103,105 | |
< if (!preg_match('{^[.a-z0-9]+$}', $token)) { | |
< throw new \UnexpectedValueException('Your github oauth token for '.$domain.' contains invalid characters: "'.$token.'"'); | |
< } | |
--- | |
> // if (!preg_match('{^[.a-z0-9]+$}', $token)) { | |
> // throw new \UnexpectedValueException('Your github oauth token for '.$domain.' contains invalid characters: "'.$token.'"'); | |
> // |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This patch is under the public domain (CC zero).