mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
App类添加ico资源文件访问检测
This commit is contained in:
@@ -77,6 +77,10 @@ class App
|
|||||||
{
|
{
|
||||||
is_null($request) && $request = Request::instance();
|
is_null($request) && $request = Request::instance();
|
||||||
|
|
||||||
|
if ('ico' == $request->ext()) {
|
||||||
|
throw new HttpException(404, 'ico file not exists');
|
||||||
|
}
|
||||||
|
|
||||||
$config = self::initCommon();
|
$config = self::initCommon();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user