Don't request basic auth if auth scheme isn't basic

fixes #10506
This commit is contained in:
Alexander A. Klimov 2016-02-15 10:38:10 +01:00
parent 1fcbe87a6f
commit 4c97fb7d01

View File

@ -289,7 +289,7 @@ class Auth
} }
list($scheme) = explode(' ', $header, 2); list($scheme) = explode(' ', $header, 2);
if ($scheme !== 'Basic') { if ($scheme !== 'Basic') {
$this->challengeHttp(); return false;
} }
$authorization = substr($header, strlen('Basic ')); $authorization = substr($header, strlen('Basic '));
$credentials = base64_decode($authorization); $credentials = base64_decode($authorization);