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 {