mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
"Closes #3560, edit form use PUT so SecurityComponent::validatePost() don't call on submit"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6259 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
72c80efa75
commit
0644112ca9
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class SecurityComponent extends Object {
|
|||
$this->__authRequired($controller);
|
||||
$this->__loginRequired($controller);
|
||||
|
||||
if ((!isset($controller->params['requested']) || $controller->params['requested'] != 1) && $this->RequestHandler->isPost()) {
|
||||
if ((!isset($controller->params['requested']) || $controller->params['requested'] != 1) && ($this->RequestHandler->isPost() || $this->RequestHandler->isPut())) {
|
||||
$this->__validatePost($controller);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue