From 9623e03c3f3b7f10215e590070a9fb9be9881920 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 20 Oct 2021 17:11:09 +0800 Subject: [PATCH] try fix index.html in specialchars folder --- common.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common.php b/common.php index 05f04b4..704f58b 100644 --- a/common.php +++ b/common.php @@ -1932,8 +1932,7 @@ function render_list($path = '', $files = []) global $slash; if (isset($files['list']['index.html']) && !$_SERVER['admin']) { - //$htmlcontent = fetch_files(spurlencode(path_format(urldecode($path) . '/index.html'), '/'))['content']; - $htmlcontent = get_content(spurlencode(path_format(urldecode($path) . '/index.html'), '/'))['content']; + $htmlcontent = get_content(path_format($path . '/index.html'))['content']; return output($htmlcontent['body'], $htmlcontent['stat']); } //$path = str_replace('%20','%2520',$path);