mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Url: fix sanitize for new github tokens (#10048)
This commit is contained in:
parent
c7d11f361c
commit
c65bd832d6
2 changed files with 3 additions and 2 deletions
|
@ -78,6 +78,7 @@ class UrlTest extends TestCase
|
|||
array('https://foo:***@example.org:123/', 'https://foo:bar@example.org:123/'),
|
||||
array('https://example.org/foo/bar?access_token=***', 'https://example.org/foo/bar?access_token=abcdef'),
|
||||
array('https://example.org/foo/bar?foo=bar&access_token=***', 'https://example.org/foo/bar?foo=bar&access_token=abcdef'),
|
||||
array('https://***:***@github.com/acme/repo', 'https://ghp_1234567890abcdefghijklmnopqrstuvwxyzAB:x-oauth-basic@github.com/acme/repo'),
|
||||
// without scheme
|
||||
array('foo:***@example.org/', 'foo:bar@example.org/'),
|
||||
array('foo@example.org/', 'foo@example.org/'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue