From b9af1bf7e9ac698cdde5142fde1cb6f9de7e4a7a Mon Sep 17 00:00:00 2001 From: "lmr@hainatravel.com" <59361885@qq.com> Date: Mon, 4 Dec 2017 12:33:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=9B=B4=E6=96=B0fix=20index?= =?UTF-8?q?.htm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;