Fix Core\Csrf for instant redirects
This commit is contained in:
parent
a472b859c6
commit
9410dba830
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class Csrf
|
||||||
|
|
||||||
$result = \is_string($token)
|
$result = \is_string($token)
|
||||||
&& \preg_match('%f(\d+)$%D', $token, $matches)
|
&& \preg_match('%f(\d+)$%D', $token, $matches)
|
||||||
&& $matches[1] + 0 < $now
|
&& $matches[1] + 0 <= $now
|
||||||
&& $matches[1] + 1800 >= $now
|
&& $matches[1] + 1800 >= $now
|
||||||
&& \hash_equals($this->create($marker, $args, $matches[1]), $token);
|
&& \hash_equals($this->create($marker, $args, $matches[1]), $token);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue