mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
00eb220e91
commit
b930149c3a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user