try fix index.html in specialchars folder

pull/453/head
qkqpttgf 2021-10-20 17:11:09 +08:00 committed by GitHub
parent b737194bea
commit 9623e03c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1932,8 +1932,7 @@ function render_list($path = '', $files = [])
global $slash; global $slash;
if (isset($files['list']['index.html']) && !$_SERVER['admin']) { if (isset($files['list']['index.html']) && !$_SERVER['admin']) {
//$htmlcontent = fetch_files(spurlencode(path_format(urldecode($path) . '/index.html'), '/'))['content']; $htmlcontent = get_content(path_format($path . '/index.html'))['content'];
$htmlcontent = get_content(spurlencode(path_format(urldecode($path) . '/index.html'), '/'))['content'];
return output($htmlcontent['body'], $htmlcontent['stat']); return output($htmlcontent['body'], $htmlcontent['stat']);
} }
//$path = str_replace('%20','%2520',$path); //$path = str_replace('%20','%2520',$path);