diff --git a/application/controllers/cache.php b/application/controllers/cache.php index 1d9a0e20..075fd162 100644 --- a/application/controllers/cache.php +++ b/application/controllers/cache.php @@ -147,7 +147,7 @@ class Cache extends CI_Controller { if ($f!='.' && $f!='..' && (strpos($dir, '/cn/')==false) && (strpos($f, '.pdf')===false)) { - $file_temp = str_ireplace('index.htm###', '', $f.'###'); + $file_temp = str_ireplace('/index.htm###', '', $f.'###'); $file_temp = str_ireplace('###', '', $file_temp); $path_temp = str_ireplace($this->dir, '', $dir); $url_temp = $this->current_domain.$path_temp.'/'.$file_temp;