From 119ac5280df50271e3f9f2fa184b84ad691a40a4 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Fri, 12 Mar 2021 17:38:47 +0800 Subject: [PATCH] fix: 500 error in php8 --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index c9d7f63..4e661a8 100644 --- a/common.php +++ b/common.php @@ -2064,7 +2064,7 @@ function render_list($path = '', $files = []) $html = str_replace('', getconstStr('ClicktoEdit'), $html); $html = str_replace('', getconstStr('CancelEdit'), $html); $html = str_replace('', getconstStr('Save'), $html); - while (strpos($html, '')) $html = str_replace('', htmlspecialchars(curl('GET', $files['url'], '', '', 0, 1)['body']), $html); + while (strpos($html, '')) $html = str_replace('', htmlspecialchars(curl('GET', $files['url'], '', [], 0, 1)['body']), $html); //while (strpos($html, '')) $html = str_replace('', htmlspecialchars(get_content(spurlencode(path_format(urldecode($path) . '/' . $files['name']), '/'))['content']['body']), $html); $html = str_replace('', getconstStr('FileNotSupport'), $html);