diff --git a/common.php b/common.php index acbbdf0..3081e5c 100644 --- a/common.php +++ b/common.php @@ -2382,7 +2382,7 @@ function render_list($path = '', $files = []) $folder1 = $tmp1[0]; if ($folder1!='') { $tmp_url .= $folder1 . '/'; - $PathArrayStr1 = str_replace('', ($folder1==$files['name']?'':$tmp_url), $PathArrayStr); + $PathArrayStr1 = str_replace('', encode_str_replace($folder1==$files['name']?'':$tmp_url), $PathArrayStr); $PathArrayStr1 = str_replace('', $folder1, $PathArrayStr1); $html .= $PathArrayStr1; } @@ -2403,7 +2403,7 @@ function render_list($path = '', $files = []) $folder1 = $tmp1[0]; if ($folder1!='') { $tmp_url .= $folder1 . '/'; - $PathArrayStr1 = str_replace('', ($folder1==$files['name']?'':$tmp_url), $PathArrayStr); + $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; }