From cc9aa76f311afea7e8c5d5a092505146edb3b0f5 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 8 Feb 2017 18:51:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E8=B7=AF=E7=94=B1=E7=9A=84ex?= =?UTF-8?q?t=E5=92=8Cdeny=5Fext=E5=8F=82=E6=95=B0=20=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BA=E7=A9=BA=20=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E5=85=81=E8=AE=B8=E4=BB=BB=E4=BD=95=E5=90=8E=E7=BC=80?= =?UTF-8?q?=E6=88=96=E8=80=85=E5=BF=85=E9=A1=BB=E4=BD=BF=E7=94=A8=E5=90=8E?= =?UTF-8?q?=E7=BC=80=E8=AE=BF=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index 1629d636..4a630adc 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1126,8 +1126,8 @@ class Route || (isset($option['ajax']) && !$option['ajax'] && $request->isAjax()) // 非Ajax检测 || (isset($option['pjax']) && $option['pjax'] && !$request->isPjax()) // Pjax检测 || (isset($option['pjax']) && !$option['pjax'] && $request->isPjax()) // 非Pjax检测 - || (isset($option['ext']) && false === stripos('|' . $option['ext'] . '|', $request->ext() ? '|' . $request->ext() . '|' : '')) // 伪静态后缀检测 - || (isset($option['deny_ext']) && false !== stripos('|' . $option['deny_ext'] . '|', $request->ext() ? '|' . $request->ext() . '|' : '')) + || (isset($option['ext']) && false === stripos('|' . $option['ext'] . '|', '|' . $request->ext() . '|')) // 伪静态后缀检测 + || (isset($option['deny_ext']) && false !== stripos('|' . $option['deny_ext'] . '|', '|' . $request->ext() . '|')) || (isset($option['domain']) && !in_array($option['domain'], [$_SERVER['HTTP_HOST'], self::$subDomain])) // 域名检测 || (isset($option['https']) && $option['https'] && !$request->isSsl()) // https检测 || (isset($option['https']) && !$option['https'] && $request->isSsl()) // https检测