From ba471ab6504f8fa3bbf42213bbeee8a183887ee7 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 1 Feb 2021 18:17:43 +0800 Subject: [PATCH] try fix: office file can not preview --- common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.php b/common.php index 6531fdb..7e84c0d 100644 --- a/common.php +++ b/common.php @@ -1868,11 +1868,11 @@ 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['url'], $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); + $html = str_replace('', urlencode($files['url']), $html); $html = str_replace('', getconstStr('ClicktoEdit'), $html); $html = str_replace('', getconstStr('CancelEdit'), $html); $html = str_replace('', getconstStr('Save'), $html);