Browse Source

Fix Core\Csrf for instant redirects

Visman 4 years ago
parent
commit
9410dba830
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Core/Csrf.php

+ 1 - 1
app/Core/Csrf.php

@@ -66,7 +66,7 @@ class Csrf
 
         $result = \is_string($token)
             && \preg_match('%f(\d+)$%D', $token, $matches)
-            && $matches[1] + 0 < $now
+            && $matches[1] + 0 <= $now
             && $matches[1] + 1800 >= $now
             && \hash_equals($this->create($marker, $args, $matches[1]), $token);