Skip to content

Commit

Permalink
Remove csrfToken from secured fields.
Browse files Browse the repository at this point in the history
It is validated separately and causes validation errors right now.
  • Loading branch information
markstory committed Mar 11, 2014
1 parent 4a3cbb1 commit 360fe38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/SecurityComponent.php
Expand Up @@ -305,7 +305,7 @@ protected function _validatePost(Controller $controller) {
if (strpos($token, ':')) {
list($token, $locked) = explode(':', $token, 2);
}
unset($check['_Token']);
unset($check['_Token'], $check['_csrfToken']);

$locked = explode('|', $locked);
$unlocked = explode('|', $unlocked);
Expand Down

0 comments on commit 360fe38

Please sign in to comment.