Skip to content

Commit

Permalink
Again using same serialization strategy for cached view files, as in …
Browse files Browse the repository at this point in the history
…some environments file is corrupted
  • Loading branch information
lorenzo committed May 4, 2012
1 parent 7fd1955 commit 6f9b26f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/CacheHelper.php
Expand Up @@ -291,7 +291,7 @@ protected function _writeFile($content, $timestamp, $useCallbacks = false) {
}

$file .= '
$request = unserialize(\'' . str_replace("'", "\\'", serialize($this->request)) . '\');
$request = unserialize(base64_decode(\'' . base64_encode(serialize($this->request)) . '\'));
$response = new CakeResponse(array("charset" => Configure::read("App.encoding")));
$controller = new ' . $this->_View->name . 'Controller($request, $response);
$controller->plugin = $this->plugin = \'' . $this->_View->plugin . '\';
Expand Down

0 comments on commit 6f9b26f

Please sign in to comment.