From 33c977afaf1cfe0745278c1239806219f41a6e06 Mon Sep 17 00:00:00 2001 From: Nicola Galgano Date: Sun, 9 Sep 2018 11:28:26 +0200 Subject: [PATCH] allow login github credential with '#' --- .../components/com_patchtester/PatchTester/GitHub/GitHub.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/administrator/components/com_patchtester/PatchTester/GitHub/GitHub.php b/administrator/components/com_patchtester/PatchTester/GitHub/GitHub.php index d4a3775..cedf0d5 100644 --- a/administrator/components/com_patchtester/PatchTester/GitHub/GitHub.php +++ b/administrator/components/com_patchtester/PatchTester/GitHub/GitHub.php @@ -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); } }