From fb641940104dcccf6210eed1a7940af960600f57 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 10 May 2020 15:17:52 +0800 Subject: [PATCH] fix: guest upload error when hide login btn --- common.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common.php b/common.php index 5453e4e..33fe6e4 100644 --- a/common.php +++ b/common.php @@ -1797,6 +1797,13 @@ function render_list($path = '', $files = '') $tmp = splitfirst($tmp[1], ''); $html .= $tmp[1]; } + $tmp[1] = 'a'; + while ($tmp[1]!='') { + $tmp = splitfirst($html, ''); + $html = $tmp[0]; + $tmp = splitfirst($tmp[1], ''); + $html .= $tmp[1]; + } while (strpos($html, '')) { $html = str_replace('', '', $html); $html = str_replace('', '', $html); @@ -1837,6 +1844,8 @@ function render_list($path = '', $files = '') $html .= $tmp[1]; } } + while (strpos($html, '')) $html = str_replace('', '', $html); + while (strpos($html, '')) $html = str_replace('', '', $html); } if ($_SERVER['is_guestup_path']&&!$_SERVER['admin']) {