Skip to content

Instantly share code, notes, and snippets.

@valerio-bozzolan
Created June 21, 2021 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valerio-bozzolan/84364c28a3bba13751c504214016adcf to your computer and use it in GitHub Desktop.
Save valerio-bozzolan/84364c28a3bba13751c504214016adcf to your computer and use it in GitHub Desktop.
Fix Composer 1.8.* GitHub token parser
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.'"');
> //
@valerio-bozzolan
Copy link
Author

This patch is under the public domain (CC zero).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment