mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix broken cookie issue #10724
This change makes Security::cipher() encoding and decoding same as 2.7 and below.
This commit is contained in:
parent
cf679a3233
commit
655a5fe0ae
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||||
|
|
Loading…
Reference in a new issue