From 0a0162abe2d7fb29e1c61af1a80212f3c62e37c7 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 6 Oct 2021 16:32:23 +0800 Subject: [PATCH] fix & --- common.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common.php b/common.php index f12a28b..a09d7d4 100644 --- a/common.php +++ b/common.php @@ -1921,11 +1921,11 @@ function render_list($path = '', $files = []) //$htmlcontent = fetch_files(spurlencode(path_format(urldecode($path) . '/index.html'), '/'))['content']; $htmlcontent = get_content(spurlencode(path_format(urldecode($path) . '/index.html'), '/'))['content']; return output($htmlcontent['body'], $htmlcontent['stat']); - }//echo $path . "
\n"; + } //$path = str_replace('%20','%2520',$path); $path = str_replace('+','%2B',$path); - $path = str_replace('&','&',path_format(urldecode($path))) ; - //echo $path . "
\n"; + $path = path_format(urldecode($path)); + //$path = str_replace('&','&', $path) ; //$path = str_replace('%20',' ',$path); $path = str_replace('#','%23',$path); $p_path='';