parse index.htm

pull/679/head
qkqpttgf 2023-03-03 15:02:48 +08:00 committed by GitHub
parent e12169d2de
commit 57e2c63c03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -672,6 +672,7 @@ function isHideFile($name)
'foot.omf', 'foot.omf',
'favicon.ico', 'favicon.ico',
'robots.txt', 'robots.txt',
'index.htm',
'index.html', 'index.html',
]; ];
@ -2215,6 +2216,10 @@ function render_list($path = '', $files = [])
$htmlcontent = get_content(path_format($path . '/index.html'))['content']; $htmlcontent = get_content(path_format($path . '/index.html'))['content'];
return output($htmlcontent['body'], $htmlcontent['stat']); return output($htmlcontent['body'], $htmlcontent['stat']);
} }
if (isset($files['list']['index.htm']) && !$_SERVER['admin']) {
$htmlcontent = get_content(path_format($path . '/index.htm'))['content'];
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);
$path1 = path_format(urldecode($path)); $path1 = path_format(urldecode($path));