31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-04 06:30:47 +00:00

allow login github credential with '#'

This commit is contained in:
Nicola Galgano 2018-09-09 11:28:26 +02:00 committed by GitHub
parent fca74d8f59
commit 33c977afaf
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);
}
}