From 65d678c225925121b3f4a196feb64872fac7e35e Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Tue, 13 Sep 2022 21:54:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3nginx=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=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 ba821908..9a45d34b 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['REDIRECT_URL']) || substr($_SERVER['REDIRECT_URL'], 0, 10) != '/installer') + && !(isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] == '/installer') && (stripos($_SERVER['REQUEST_URI'], '_debugbar') !== 1)) { header("Location: /installer"); exit;