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:
gwoo 2008-06-23 23:13:28 +00:00
parent ef92581451
commit 330992a8a3

View file

@ -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();