Skip to content
Permalink
Browse files

bugfix basic to Basic

  • Loading branch information...
nicolabeghin committed Apr 23, 2017
1 parent 7cd9d43 commit a1eb067c71387de9e8bea4e794ac0b690f58e1fb
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Controller/Component/Auth/BasicAuthenticate.php
@@ -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)));
}
}

0 comments on commit a1eb067

Please sign in to comment.
You can’t perform that action at this time.