Permalink
Browse files

Fix issue with CacheHelper and named parameters with '

Fixes #2291
  • Loading branch information...
1 parent b587537 commit 7e91d13ddde3ed463de61d2cf3eb9f59242a82a3 @markstory markstory committed Nov 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/view/helpers/cache.php
@@ -264,7 +264,7 @@ function __writeFile($content, $timestamp, $useCallbacks = false) {
$controller->base = $this->base = \'' . $this->base . '\';
$controller->layout = $this->layout = \'' . $this->layout. '\';
$controller->webroot = $this->webroot = \'' . $this->webroot . '\';
- $controller->here = $this->here = \'' . $this->here . '\';
+ $controller->here = $this->here = \'' . addslashes($this->here) . '\';
$controller->params = $this->params = unserialize(stripslashes(\'' . addslashes(serialize($this->params)) . '\'));
$controller->action = $this->action = unserialize(\'' . serialize($this->action) . '\');
$controller->data = $this->data = unserialize(stripslashes(\'' . addslashes(serialize($this->data)) . '\'));

0 comments on commit 7e91d13

Please sign in to comment.