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
This commit is contained in:
Ingo Schommer 2009-10-15 21:50:02 +00:00
parent 00eb220e91
commit b930149c3a

View File

@ -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);