From 645a040ac99538d6bec2639436b9445249c9c435 Mon Sep 17 00:00:00 2001 From: Nchyn <6263075@163.com> Date: Sat, 16 May 2020 23:40:33 +0800 Subject: [PATCH] Update common.php --- common.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index f6ff7c2..efba6ee 100644 --- a/common.php +++ b/common.php @@ -2137,7 +2137,8 @@ function render_list($path = '', $files = '') $html = str_replace('', '', $html); $html = str_replace('', '', $html); } - while (strpos($html, '')) $html = str_replace('', $files[$_SERVER['DownurlStrName']], $html); + //while (strpos($html, '')) $html = str_replace('', $files[$_SERVER['DownurlStrName']], $html); + while (strpos($html, '')) $html = str_replace('', path_format($_SERVER['base_disk_path'] . '/' . $path), $html); while (strpos($html, '')) $html = str_replace('', path_format($_SERVER['base_disk_path'] . '/' . $path), $html); while (strpos($html, '')) $html = str_replace('', $files['name'], $html); $html = str_replace('', urlencode($files[$_SERVER['DownurlStrName']]), $html); @@ -2296,6 +2297,7 @@ function render_list($path = '', $files = '') $tmp[1] = $tmp1; } $html .= $MultiDiskArea . $tmp[1]; + while (strpos($html, '')) $html = str_replace('', $_SERVER['disktag'], $html); $tmp = splitfirst($html, ''); $html = $tmp[0];