mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing notice error when all csrf tokens are expired at once.
Fixes #1901
This commit is contained in:
parent
1726bad396
commit
1df8de683d
1 changed files with 1 additions and 1 deletions
|
@ -511,7 +511,7 @@ class SecurityComponent extends Component {
|
|||
$token['csrfTokens'] = $this->_expireTokens($tokenData['csrfTokens']);
|
||||
}
|
||||
}
|
||||
if ($this->csrfCheck && ($this->csrfUseOnce || empty($tokenData['csrfTokens'])) ) {
|
||||
if ($this->csrfCheck && ($this->csrfUseOnce || empty($token['csrfTokens'])) ) {
|
||||
$token['csrfTokens'][$authKey] = strtotime($this->csrfExpires);
|
||||
}
|
||||
if ($this->csrfCheck && $this->csrfUseOnce == false) {
|
||||
|
|
Loading…
Reference in a new issue