mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding fix for #2648, fixes issue with token not being regenerated
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5251 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
41d41cf7e2
commit
3ed6780ac4
1 changed files with 3 additions and 2 deletions
|
@ -145,10 +145,11 @@ class SecurityComponent extends Object {
|
|||
$this->__secureRequired($controller);
|
||||
$this->__authRequired($controller);
|
||||
$this->__loginRequired($controller);
|
||||
if($this->RequestHandler->isPost()) {
|
||||
|
||||
if((!isset($controller->params['requested']) || $controller->params['requested'] != 1) && $this->RequestHandler->isPost()) {
|
||||
$this->__validatePost($controller);
|
||||
return;
|
||||
}
|
||||
|
||||
$this->__generateToken($controller);
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue