From be58a17328fc712eba0fd31dce493b3201de8f63 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 20 Jan 2022 22:08:04 +0800 Subject: [PATCH] try fix : getenv(null) --- common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/common.php b/common.php index ab49ba9..033273c 100644 --- a/common.php +++ b/common.php @@ -222,6 +222,7 @@ function main($path) return output('Please visit ' . $tmp . '.', 301, [ 'Location' => $tmp ]); } if ($_SERVER['admin']) { + $_SERVER['disktag'] = ''; if (!class_exists($_GET['AddDisk'])) require 'disk' . $slash . $_GET['AddDisk'] . '.php'; $drive = new $_GET['AddDisk']($_GET['disktag']); return $drive->AddDisk();