33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2025-01-14 11:03:15 +00:00

Merge pull request #215 from alikon/patch-4

allow login github credential with '#'
This commit is contained in:
Michael Babker 2018-09-09 10:26:39 -05:00 committed by GitHub
commit deeb293506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,7 @@ class GitHub
{
$username = $this->options->get('api.username');
$username = str_replace('@', '%40', $username);
$username = str_replace('#', '%23', $username);
$uri->setUser($username);
}
@ -85,6 +86,7 @@ class GitHub
{
$password = $this->options->get('api.password');
$password = str_replace('@', '%40', $password);
$password = str_replace('#', '%23', $password);
$uri->setPass($password);
}
}