fix too many redirect when adddisk with no admin

#259 thx
pull/440/merge
qkqpttgf 2021-10-14 10:00:43 +08:00 committed by GitHub
parent 212a7008dd
commit 978c7722e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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('<script>alert(\''.getconstStr('SetSecretsFirst').'\');</script>', 302, [ 'Location' => $url ]);
}
}