mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Apply base64 encoding after helper serialization
This commit is contained in:
parent
a4aaaff53a
commit
803e7be363
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ class CacheHelper extends AppHelper {
|
||||||
$response = new CakeResponse(array("charset" => Configure::read("App.encoding")));
|
$response = new CakeResponse(array("charset" => Configure::read("App.encoding")));
|
||||||
$controller = new ' . $this->_View->name . 'Controller($request, $response);
|
$controller = new ' . $this->_View->name . 'Controller($request, $response);
|
||||||
$controller->plugin = $this->plugin = \'' . $this->_View->plugin . '\';
|
$controller->plugin = $this->plugin = \'' . $this->_View->plugin . '\';
|
||||||
$controller->helpers = $this->helpers = unserialize(\'' . str_replace("'", "\'", serialize($this->_View->helpers)) . '\');
|
$controller->helpers = $this->helpers = unserialize(base64_decode(\'' . base64_encode(serialize($this->_View->helpers)) . '\'));
|
||||||
$controller->layout = $this->layout = \'' . $this->_View->layout. '\';
|
$controller->layout = $this->layout = \'' . $this->_View->layout. '\';
|
||||||
$controller->theme = $this->theme = \'' . $this->_View->theme . '\';
|
$controller->theme = $this->theme = \'' . $this->_View->theme . '\';
|
||||||
$controller->viewVars = $this->viewVars = unserialize(base64_decode(\'' . base64_encode(serialize($this->_View->viewVars)) . '\'));
|
$controller->viewVars = $this->viewVars = unserialize(base64_decode(\'' . base64_encode(serialize($this->_View->viewVars)) . '\'));
|
||||||
|
|
Loading…
Reference in a new issue