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;