Fix broken cookie issue #10724

This change makes Security::cipher() encoding and decoding same as 2.7 and below.
This commit is contained in:
Ikuo Degawa 2017-06-10 15:20:25 +09:00
parent cf679a3233
commit 655a5fe0ae

View file

@ -220,7 +220,7 @@ class Security {
return ''; return '';
} }
srand((int)Configure::read('Security.cipherSeed')); srand((int)(float)Configure::read('Security.cipherSeed'));
$out = ''; $out = '';
$keyLength = strlen($key); $keyLength = strlen($key);
for ($i = 0, $textLength = strlen($text); $i < $textLength; $i++) { for ($i = 0, $textLength = strlen($text); $i < $textLength; $i++) {