"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:
phpnut 2007-12-25 10:49:29 +00:00
parent 72c80efa75
commit 0644112ca9

View file

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