Don't fail if password contains a colon on basic auth

refs #9660
This commit is contained in:
Eric Lippmann 2015-07-30 13:59:47 +02:00
parent c594d6db33
commit 55ad2dd65f

View File

@ -292,7 +292,7 @@ class Auth
}
$authorization = substr($header, strlen('Basic '));
$credentials = base64_decode($authorization);
$credentials = array_filter(explode(':', $credentials));
$credentials = array_filter(explode(':', $credentials, 2));
if (count($credentials) !== 2) {
// Deny empty username and/or password
$this->challengeHttp();