mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
4ea643b2e2
commit
b3128b280f
@ -113,7 +113,7 @@ class Controller extends ViewableData {
|
|||||||
$this->response = new HTTPResponse();
|
$this->response = new HTTPResponse();
|
||||||
$this->requestParams = $requestParams;
|
$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';
|
if(!$this->action) $this->action = 'index';
|
||||||
|
|
||||||
// Check security on the controller
|
// Check security on the controller
|
||||||
@ -533,6 +533,8 @@ class Controller extends ViewableData {
|
|||||||
* Check thAT
|
* Check thAT
|
||||||
*/
|
*/
|
||||||
function checkAccessAction($action) {
|
function checkAccessAction($action) {
|
||||||
|
$action = strtolower($action);
|
||||||
|
|
||||||
// Collate self::$allowed_actions from this class and all parent classes
|
// Collate self::$allowed_actions from this class and all parent classes
|
||||||
$access = null;
|
$access = null;
|
||||||
$className = $this->class;
|
$className = $this->class;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user