mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
6e4493cc14
commit
2bb4ed01be
1 changed files with 3 additions and 0 deletions
|
@ -208,6 +208,9 @@ class SecurityComponent extends Component {
|
|||
}
|
||||
}
|
||||
$this->_generateToken($controller);
|
||||
if ($isPost) {
|
||||
unset($controller->request->data['_Token']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue