From 8b74fa95f09ee06a55b81e7116079f21039b1ea0 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Fri, 17 May 2024 08:27:44 +0800 Subject: [PATCH] fix index.htm --- 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 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'));