Skip to content

Commit

Permalink
Fix broken cookie issue #10724
Browse files Browse the repository at this point in the history
This change makes Security::cipher() encoding and decoding same as 2.7 and below.
  • Loading branch information
ikuwow committed Jun 10, 2017
1 parent cf679a3 commit 655a5fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Security.php
Expand Up @@ -220,7 +220,7 @@ public static function cipher($text, $key) {
return '';
}

srand((int)Configure::read('Security.cipherSeed'));
srand((int)(float)Configure::read('Security.cipherSeed'));
$out = '';
$keyLength = strlen($key);
for ($i = 0, $textLength = strlen($text); $i < $textLength; $i++) {
Expand Down

0 comments on commit 655a5fe

Please sign in to comment.