mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Again using same serialization strategy for cached view files, as in some environments file is corrupted
This commit is contained in:
parent
7fd19551db
commit
6f9b26fe58
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ class CacheHelper extends AppHelper {
|
|||
}
|
||||
|
||||
$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 . '\';
|
||||
|
|
Loading…
Add table
Reference in a new issue