From 3c6fc55eed7d7dbc41b6600456459972e4175085 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 21 Dec 2010 23:45:47 -0500 Subject: [PATCH] Removing strlower() calls as they are not needed in php5 land. --- cake/libs/controller/components/security.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cake/libs/controller/components/security.php b/cake/libs/controller/components/security.php index b3ae711d8..90a934aea 100644 --- a/cake/libs/controller/components/security.php +++ b/cake/libs/controller/components/security.php @@ -319,7 +319,6 @@ class SecurityComponent extends Component { } $this->loginOptions = array_merge($base, $this->loginOptions); $this->_requireMethod('Login', $args); - if (isset($this->loginOptions['users'])) { $this->loginUsers =& $this->loginOptions['users']; } @@ -555,9 +554,9 @@ class SecurityComponent extends Component { */ protected function _loginRequired($controller) { if (is_array($this->requireLogin) && !empty($this->requireLogin)) { - $requireLogin = array_map('strtolower', $this->requireLogin); + $requireLogin = $this->requireLogin; - if (in_array($this->_action, $requireLogin) || $this->requireLogin == array('*')) { + if (in_array($this->_action, $this->requireLogin) || $this->requireLogin == array('*')) { $login = $this->loginCredentials($this->loginOptions['type']); if ($login == null) {