Navigation Menu

Skip to content

Commit

Permalink
bugfix basic to Basic
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolabeghin committed Apr 23, 2017
1 parent 7cd9d43 commit a1eb067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Component/Auth/BasicAuthenticate.php
Expand Up @@ -89,7 +89,7 @@ public function getUser(CakeRequest $request) {
$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)));
}
}
Expand Down

0 comments on commit a1eb067

Please sign in to comment.