From 71d743d34afeef1aa37d6fb6282f904155ba1240 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Tue, 13 Sep 2022 23:12:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dnginx=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 9a45d34b..fe16d77f 100644 --- a/public/index.php +++ b/public/index.php @@ -15,7 +15,7 @@ if (!file_exists($htaPath)) { } if (!file_exists(__DIR__ . '/../storage/installed') - && !(isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] == '/installer') + && !(isset($_SERVER['REQUEST_URI']) && substr($_SERVER['REQUEST_URI'], 0, 10) == '/installer') && (stripos($_SERVER['REQUEST_URI'], '_debugbar') !== 1)) { header("Location: /installer"); exit;