Skip to content
Permalink
Browse files

Again using same serialization strategy for cached view files, as in …

…some environments file is corrupted
  • Loading branch information...
lorenzo committed May 4, 2012
1 parent 7fd1955 commit 6f9b26fe5814d23efad31c465304af94fd7769d3
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/Helper/CacheHelper.php
@@ -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 . '\';

0 comments on commit 6f9b26f

Please sign in to comment.
You can’t perform that action at this time.