From 978c7722e46f9e36a52b1325efee834a0eb61a41 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 14 Oct 2021 10:00:43 +0800 Subject: [PATCH] fix too many redirect when adddisk with no admin #259 thx --- common.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common.php b/common.php index 0c33602..a779959 100644 --- a/common.php +++ b/common.php @@ -268,7 +268,7 @@ function main($path) return $drive->AddDisk(); } else { $url = $_SERVER['PHP_SELF']; - if ($_GET) { + /*if ($_GET) { $tmp = null; $tmp = ''; foreach ($_GET as $k => $v) { @@ -279,7 +279,8 @@ function main($path) } $tmp = substr($tmp, 1); if ($tmp!='') $url .= '?' . $tmp; - } + }*/ + // not need GET adddisk, remove it return output('', 302, [ 'Location' => $url ]); } }