Skip to content

Commit

Permalink
Removing _Token from request data.
Browse files Browse the repository at this point in the history
It is not used outside the component and could possibly affect Model::save().
Fixes #2256

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information
ceeram authored and markstory committed Nov 16, 2011
1 parent 6e4493c commit 2bb4ed0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/Controller/Component/SecurityComponent.php
Expand Up @@ -208,6 +208,9 @@ public function startup($controller) {
}
}
$this->_generateToken($controller);
if ($isPost) {
unset($controller->request->data['_Token']);
}
}

/**
Expand Down

0 comments on commit 2bb4ed0

Please sign in to comment.