mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
fixes #4968, double quoted strings in cache
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7251 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
ef92581451
commit
330992a8a3
1 changed files with 0 additions and 2 deletions
2
cake/libs/cache/file.php
vendored
2
cake/libs/cache/file.php
vendored
|
@ -171,9 +171,7 @@ class FileEngine extends CacheEngine {
|
|||
if ($data !== '' && !empty($this->settings['serialize'])) {
|
||||
if (substr(PHP_OS, 0, 3) == "WIN") {
|
||||
$data = str_replace('\\\\\\\\', '\\', $data);
|
||||
$data = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $data);
|
||||
}
|
||||
|
||||
$data = unserialize($data);
|
||||
}
|
||||
$this->__File->close();
|
||||
|
|
Loading…
Add table
Reference in a new issue