Merge pull request #10749 from ikuwow/2.next-fix-broken-cookie

Fix broken cookie issue
This commit is contained in:
Mark Story 2017-06-15 21:15:13 -04:00 committed by GitHub
commit 05d30a6f05

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++) {