From bab19ae9d3d61d979bc9d70db47c8bafe66d09a5 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Fri, 15 Oct 2021 16:54:54 +0800 Subject: [PATCH] try fix PathArray with & , last not preview --- common.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common.php b/common.php index 262b943..2ae98af 100644 --- a/common.php +++ b/common.php @@ -2582,9 +2582,9 @@ function render_list($path = '', $files = []) $tmp_path = str_replace('&','&', substr(urldecode($_SERVER['PHP_SELF']), strlen($tmp_url))); while ($tmp_path!='') { $tmp1 = splitfirst($tmp_path, '/'); - $folder1 = $tmp1[0]; + $folder1 = str_replace('&', '&', $tmp1[0]); if ($folder1!='') { - $tmp_url .= str_replace('&', '&', $folder1) . '/'; + $tmp_url .= $folder1 . '/'; $PathArrayStr1 = str_replace('', encode_str_replace($folder1==$files['name']?'':$tmp_url), $PathArrayStr); $PathArrayStr1 = str_replace('', $folder1, $PathArrayStr1); $html .= $PathArrayStr1; @@ -2603,9 +2603,9 @@ function render_list($path = '', $files = []) $tmp_path = str_replace('&','&', substr(urldecode($_SERVER['PHP_SELF']), strlen($tmp_url))); while ($tmp_path!='') { $tmp1 = splitfirst($tmp_path, '/'); - $folder1 = $tmp1[0]; + $folder1 = str_replace('&', '&', $tmp1[0]); if ($folder1!='') { - $tmp_url .= str_replace('&', '&', $folder1) . '/'; + $tmp_url .= $folder1 . '/'; $PathArrayStr1 = str_replace('', encode_str_replace($folder1==$files['name']?'':$tmp_url), $PathArrayStr); $PathArrayStr1 = str_replace('', ($folder1==$_SERVER['disktag']?(getConfig('diskname')==''?$_SERVER['disktag']:getConfig('diskname')):$folder1), $PathArrayStr1); $html .= $PathArrayStr1;