From fe16e167d0f1b8665571e8bb6c31ea0cb7cec513 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 18 Jul 2016 11:20:35 +0800 Subject: [PATCH] =?UTF-8?q?App=E7=B1=BB=E6=B7=BB=E5=8A=A0ico=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E6=96=87=E4=BB=B6=E8=AE=BF=E9=97=AE=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/think/App.php b/library/think/App.php index cfe087d8..24163372 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -77,6 +77,10 @@ class App { is_null($request) && $request = Request::instance(); + if ('ico' == $request->ext()) { + throw new HttpException(404, 'ico file not exists'); + } + $config = self::initCommon(); try {