Skip to content

Commit ae55dcd

Browse files
xabbuhfabpot
authored andcommitted
prevent timing attacks in digest auth listener
1 parent f9eefa3 commit ae55dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/Csrf/CsrfProvider/DefaultCsrfProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function isCsrfTokenValid($intention, $token)
6666
return StringUtils::equals($expectedToken, $token);
6767
}
6868

69-
return $token === $this->generateCsrfToken($intention);
69+
return $token === $expectedToken;
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)