diff --git a/application/controllers/cache.php b/application/controllers/cache.php index f6316f10..8a1b6a78 100644 --- a/application/controllers/cache.php +++ b/application/controllers/cache.php @@ -158,7 +158,7 @@ class Cache extends CI_Controller $file_temp = str_replace('###', '', $file_temp); $path_temp = str_replace($this->dir, '', $dir); $url_temp = $this->current_domain . $path_temp . '/' . $file_temp; - $url_temp = str_replace('index.htm', '', $url_temp); + $url_temp = str_replace('/index.htm', '/', $url_temp); $file_time[$url_temp] = date("F d Y H:i:s", filemtime("$dir/$f")); $encode = mb_detect_encoding($url_temp, array('ASCII', 'GBK', 'ISO-8859-1', 'UTF-8'));