mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
bugfix basic to Basic
This commit is contained in:
parent
7cd9d4381a
commit
a1eb067c71
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class BasicAuthenticate extends BaseAuthenticate {
|
|||
$pass = env('PHP_AUTH_PW');
|
||||
} else {
|
||||
$httpAuthorization = $request->header('Authorization');
|
||||
if ($httpAuthorization !== false && strlen($httpAuthorization) > 0 && strpos($httpAuthorization, 'basic') !== false) {
|
||||
if ($httpAuthorization !== false && strlen($httpAuthorization) > 0 && strpos($httpAuthorization, 'Basic') !== false) {
|
||||
list($username, $pass) = explode(':', base64_decode(substr($httpAuthorization, 6)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue