Explorar o código

Fix Core\Csrf for instant redirects

Visman %!s(int64=4) %!d(string=hai) anos
pai
achega
9410dba830
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);