We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5066253 + 111bde0 commit adbd8daCopy full SHA for adbd8da
1 file changed
src/SimpleSAML/Session.php
@@ -10,7 +10,7 @@
10
use SimpleSAML\Error;
11
use SimpleSAML\Utils;
12
13
-use function hash_equal;
+use function hash_equals;
14
15
/**
16
* The Session class holds information about a user session, and everything attached to it.
@@ -362,7 +362,7 @@ public static function getSession(string $sessionId = null): ?Session
362
Logger::warning('Missing AuthToken cookie.');
363
return null;
364
}
365
- if (!hash_equal($session->authToken, $_COOKIE[$authTokenCookieName])) {
+ if (!hash_equals($session->authToken, $_COOKIE[$authTokenCookieName])) {
366
Logger::warning('Invalid AuthToken cookie.');
367
368
0 commit comments