try fix #

pull/453/head
qkqpttgf 2021-10-15 13:26:57 +08:00 committed by GitHub
parent bec4e3c91f
commit 37993f0113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1924,11 +1924,11 @@ function render_list($path = '', $files = [])
return output($htmlcontent['body'], $htmlcontent['stat']); return output($htmlcontent['body'], $htmlcontent['stat']);
} }
//$path = str_replace('%20','%2520',$path); //$path = str_replace('%20','%2520',$path);
$path = str_replace('+','%2B',$path); //$path = str_replace('+','%2B',$path);
$path = path_format(urldecode($path)); $path = path_format(urldecode($path));
//$path = str_replace('&','&', $path) ; //$path = str_replace('&','&', $path) ;
//$path = str_replace('%20',' ',$path); //$path = str_replace('%20',' ',$path);
$path = str_replace('#','%23',$path); //$path = str_replace('#','%23',$path);
$p_path=''; $p_path='';
if ($path !== '/') { if ($path !== '/') {
if ($files['type']=='file') { if ($files['type']=='file') {