fix & in title

This commit is contained in:
qkqpttgf
2021-10-21 12:49:24 +08:00
committed by GitHub
parent d02c9beb53
commit 13e72665ac
+1
View File
@@ -1955,6 +1955,7 @@ function render_list($path = '', $files = [])
} else { } else {
if (substr($path1, 0, 1)=='/') $pretitle = substr($path1, 1); if (substr($path1, 0, 1)=='/') $pretitle = substr($path1, 1);
if (substr($path1, -1)=='/') $pretitle = substr($pretitle, 0, -1); if (substr($path1, -1)=='/') $pretitle = substr($pretitle, 0, -1);
$pretitle = str_replace('&','&', $pretitle);
$tmp = splitlast($pretitle, '/'); $tmp = splitlast($pretitle, '/');
if ($tmp[1]=='') { if ($tmp[1]=='') {
$n_path = $tmp[0]; $n_path = $tmp[0];