From 826b3f7f1a55efa5934c39ea3a96e59c79308747 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 17 Nov 2020 16:15:00 +0800 Subject: [PATCH] fix: index.html in non-english folder --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 62dd3ba..7615730 100644 --- a/common.php +++ b/common.php @@ -2001,7 +2001,7 @@ function render_list($path = '', $files = '') if (strpos(__DIR__, ':')) $slash = '\\'; if (isset($files['children']['index.html']) && !$_SERVER['admin']) { - $htmlcontent = fetch_files(spurlencode(path_format($path . '/index.html'),'/'))['content']; + $htmlcontent = fetch_files(spurlencode(path_format(urldecode($path) . '/index.html'),'/'))['content']; return output($htmlcontent['body'], $htmlcontent['stat']); } $path = str_replace('%20','%2520',$path);