try fix PathArray with & , last not preview
parent
07c715c7e0
commit
bab19ae9d3
|
@ -2582,9 +2582,9 @@ function render_list($path = '', $files = [])
|
||||||
$tmp_path = str_replace('&','&', substr(urldecode($_SERVER['PHP_SELF']), strlen($tmp_url)));
|
$tmp_path = str_replace('&','&', substr(urldecode($_SERVER['PHP_SELF']), strlen($tmp_url)));
|
||||||
while ($tmp_path!='') {
|
while ($tmp_path!='') {
|
||||||
$tmp1 = splitfirst($tmp_path, '/');
|
$tmp1 = splitfirst($tmp_path, '/');
|
||||||
$folder1 = $tmp1[0];
|
$folder1 = str_replace('&', '&', $tmp1[0]);
|
||||||
if ($folder1!='') {
|
if ($folder1!='') {
|
||||||
$tmp_url .= str_replace('&', '&', $folder1) . '/';
|
$tmp_url .= $folder1 . '/';
|
||||||
$PathArrayStr1 = str_replace('<!--PathArrayLink-->', encode_str_replace($folder1==$files['name']?'':$tmp_url), $PathArrayStr);
|
$PathArrayStr1 = str_replace('<!--PathArrayLink-->', encode_str_replace($folder1==$files['name']?'':$tmp_url), $PathArrayStr);
|
||||||
$PathArrayStr1 = str_replace('<!--PathArrayName-->', $folder1, $PathArrayStr1);
|
$PathArrayStr1 = str_replace('<!--PathArrayName-->', $folder1, $PathArrayStr1);
|
||||||
$html .= $PathArrayStr1;
|
$html .= $PathArrayStr1;
|
||||||
|
@ -2603,9 +2603,9 @@ function render_list($path = '', $files = [])
|
||||||
$tmp_path = str_replace('&','&', substr(urldecode($_SERVER['PHP_SELF']), strlen($tmp_url)));
|
$tmp_path = str_replace('&','&', substr(urldecode($_SERVER['PHP_SELF']), strlen($tmp_url)));
|
||||||
while ($tmp_path!='') {
|
while ($tmp_path!='') {
|
||||||
$tmp1 = splitfirst($tmp_path, '/');
|
$tmp1 = splitfirst($tmp_path, '/');
|
||||||
$folder1 = $tmp1[0];
|
$folder1 = str_replace('&', '&', $tmp1[0]);
|
||||||
if ($folder1!='') {
|
if ($folder1!='') {
|
||||||
$tmp_url .= str_replace('&', '&', $folder1) . '/';
|
$tmp_url .= $folder1 . '/';
|
||||||
$PathArrayStr1 = str_replace('<!--PathArrayLink-->', encode_str_replace($folder1==$files['name']?'':$tmp_url), $PathArrayStr);
|
$PathArrayStr1 = str_replace('<!--PathArrayLink-->', encode_str_replace($folder1==$files['name']?'':$tmp_url), $PathArrayStr);
|
||||||
$PathArrayStr1 = str_replace('<!--PathArrayName-->', ($folder1==$_SERVER['disktag']?(getConfig('diskname')==''?$_SERVER['disktag']:getConfig('diskname')):$folder1), $PathArrayStr1);
|
$PathArrayStr1 = str_replace('<!--PathArrayName-->', ($folder1==$_SERVER['disktag']?(getConfig('diskname')==''?$_SERVER['disktag']:getConfig('diskname')):$folder1), $PathArrayStr1);
|
||||||
$html .= $PathArrayStr1;
|
$html .= $PathArrayStr1;
|
||||||
|
|
Loading…
Reference in New Issue