From b6b3870e94b06a5f6e837774651d6d3fd2a05707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 17 Dec 2019 09:04:27 +0100 Subject: [PATCH] Trimmed Username after HTTP Basic Auth in Codeigniter --- application/libraries/AuthLib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/AuthLib.php b/application/libraries/AuthLib.php index bb2c6ce9b..18b26a03b 100644 --- a/application/libraries/AuthLib.php +++ b/application/libraries/AuthLib.php @@ -378,7 +378,7 @@ class AuthLib } else // otherwise { - $hta = $this->_createAuthObjByPerson(array('uid' => $_SERVER['PHP_AUTH_USER'])); + $hta = $this->_createAuthObjByPerson(array('uid' => trim($_SERVER['PHP_AUTH_USER']))); } // Invalid credentials