Removing _Token from request data.

It is not used outside the component and could possibly affect Model::save().
Fixes #2256

Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
Ceeram 2011-11-16 00:40:48 +01:00 committed by mark_story
parent 6e4493cc14
commit 2bb4ed01be

View file

@ -208,6 +208,9 @@ class SecurityComponent extends Component {
}
}
$this->_generateToken($controller);
if ($isPost) {
unset($controller->request->data['_Token']);
}
}
/**