diff --git a/core/control/Controller.php b/core/control/Controller.php index ff5070e65..584970218 100644 --- a/core/control/Controller.php +++ b/core/control/Controller.php @@ -112,7 +112,7 @@ class Controller extends ViewableData { $this->response = new HTTPResponse(); $this->requestParams = $requestParams; - $this->action = isset($this->urlParams['Action']) ? strtolower(str_replace("-","_",$this->urlParams['Action'])) : ""; + $this->action = isset($this->urlParams['Action']) ? str_replace("-","_",$this->urlParams['Action']) : ""; if(!$this->action) $this->action = 'index'; // Check security on the controller @@ -561,6 +561,8 @@ class Controller extends ViewableData { * This method is called by run() and makes use of {@link self::$allowed_actions}. */ function checkAccessAction($action) { + $action = strtolower($action); + // Collate self::$allowed_actions from this class and all parent classes $access = null; $className = $this->class;