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
1 changed files with 1 additions and 1 deletions

View File

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