Don't strtolower ->action, as it had too many side-effects.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2@52445 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-04-10 01:59:09 +00:00
parent 4ea643b2e2
commit b3128b280f

View File

@ -113,7 +113,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
@ -533,6 +533,8 @@ class Controller extends ViewableData {
* Check thAT
*/
function checkAccessAction($action) {
$action = strtolower($action);
// Collate self::$allowed_actions from this class and all parent classes
$access = null;
$className = $this->class;