Skip to content
Permalink
Browse files

Fix broken cookie issue #10724

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 655a5fe0aebae021ad8015f9efbcf604a09533a8
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/Security.php
@@ -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++) {

0 comments on commit 655a5fe

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.