From b930149c3a1213e984de1d6d5ef2ac7e563ba86d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 15 Oct 2009 21:50:02 +0000 Subject: [PATCH] BUGFIX Fixed RequestHandler->allowedActions() lowercasing of actions - was applying the logic, but not writing it back to the $actions array. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89163 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/RequestHandler.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/control/RequestHandler.php b/core/control/RequestHandler.php index 1d65ecc5f..2d5a95b18 100755 --- a/core/control/RequestHandler.php +++ b/core/control/RequestHandler.php @@ -192,8 +192,9 @@ class RequestHandler extends ViewableData { } if($actions) { - // convert all keys and values to lowercase to allow for easier comparison, unless it is a permission code - array_change_key_case($actions, CASE_LOWER); + // convert all keys and values to lowercase to + // allow for easier comparison, unless it is a permission code + $actions = array_change_key_case($actions, CASE_LOWER); foreach($actions as $key => $value) { if(is_numeric($key)) $actions[$key] = strtolower($value);