parse index.htm
parent
e12169d2de
commit
57e2c63c03
|
@ -672,6 +672,7 @@ function isHideFile($name)
|
|||
'foot.omf',
|
||||
'favicon.ico',
|
||||
'robots.txt',
|
||||
'index.htm',
|
||||
'index.html',
|
||||
];
|
||||
|
||||
|
@ -2215,6 +2216,10 @@ function render_list($path = '', $files = [])
|
|||
$htmlcontent = get_content(path_format($path . '/index.html'))['content'];
|
||||
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('+','%2B',$path);
|
||||
$path1 = path_format(urldecode($path));
|
||||
|
|
Loading…
Reference in New Issue