Trimmed Username after HTTP Basic Auth in Codeigniter

This commit is contained in:
Andreas Österreicher
2019-12-17 09:04:27 +01:00
parent f0b26ef77e
commit b6b3870e94
+1 -1
View File
@@ -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