From 9ea5c756d4a4905d68c7776298d6df471bff4d19 Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 7 Jan 2007 22:44:19 +0000 Subject: [PATCH] Adding additional fix to [4269] to bypass cache when multiple forward slashes are used in the url git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4270 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/cache.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cake/libs/view/helpers/cache.php b/cake/libs/view/helpers/cache.php index e7cef77a6..c5a90fa0d 100644 --- a/cake/libs/view/helpers/cache.php +++ b/cake/libs/view/helpers/cache.php @@ -198,10 +198,11 @@ class CacheHelper extends AppHelper { $cacheTime = strtotime($timestamp, $now); } - if($this->here === '/'){ + $cache = convertSlash($this->here); + if(empty($cache)){ return; } - $cache = convertSlash($this->here) . '.php'; + $cache = $cache . '.php'; $file = 'controllerName . '\'); loadModels();