Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit dc80902

Browse files
Merge branch '3.4' into 4.2
* 3.4: [Security] Add a separator in the remember me cookie hash
2 parents 38dda98 + f5bf68f commit dc80902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Http/RememberMe/TokenBasedRememberMeServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,6 @@ protected function generateCookieValue($class, $username, $expires, $password)
122122
*/
123123
protected function generateCookieHash($class, $username, $expires, $password)
124124
{
125-
return hash_hmac('sha256', $class.$username.$expires.$password, $this->getSecret());
125+
return hash_hmac('sha256', $class.self::COOKIE_DELIMITER.$username.self::COOKIE_DELIMITER.$expires.self::COOKIE_DELIMITER.$password, $this->getSecret());
126126
}
127127
}

0 commit comments

Comments
 (0)