From 18f1cf51d5833b72db4ad52997cd0e5107e9b09b Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 23 Oct 2017 14:36:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3router?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/router.php b/public/router.php index 6ba1fabf9..80ada333b 100644 --- a/public/router.php +++ b/public/router.php @@ -10,7 +10,7 @@ // +---------------------------------------------------------------------- // $Id$ -if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["REQUEST_URI"])) { +if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["SCRIPT_NAME"])) { return false; } else { require __DIR__ . "/index.php";