mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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
This commit is contained in:
parent
6efa16eb82
commit
9ea5c756d4
1 changed files with 3 additions and 2 deletions
|
@ -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 = '<!--cachetime:' . $cacheTime . '--><?php
|
||||
loadController(\'' . $this->controllerName . '\');
|
||||
loadModels();
|
||||
|
|
Loading…
Reference in a new issue