diff --git a/cake/libs/controller/components/auth.php b/cake/libs/controller/components/auth.php index 135b532df..04b8a6ae2 100644 --- a/cake/libs/controller/components/auth.php +++ b/cake/libs/controller/components/auth.php @@ -265,7 +265,7 @@ class AuthComponent extends Object { $isErrorOrTests = ( strtolower($controller->name) == 'cakeerror' || (strtolower($controller->name) == 'tests' && Configure::read() > 0) || - !in_array($controller->params['action'], $controller->methods) + !in_array(strtolower($controller->params['action']), $controller->methods) ); if ($isErrorOrTests) { return true; diff --git a/cake/tests/cases/libs/controller/components/auth.test.php b/cake/tests/cases/libs/controller/components/auth.test.php index 8388495a2..e53f7c7da 100644 --- a/cake/tests/cases/libs/controller/components/auth.test.php +++ b/cake/tests/cases/libs/controller/components/auth.test.php @@ -651,6 +651,9 @@ class AuthTest extends CakeTestCase { $this->Controller->params['action'] = 'add'; $this->assertFalse($this->Controller->Auth->startup($this->Controller)); + + $this->Controller->params['action'] = 'Add'; + $this->assertFalse($this->Controller->Auth->startup($this->Controller)); } /** * testLoginRedirect method