From 4c5dd3f1517e3efd5286fbb01303ee2d76636daf Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 27 Jan 2016 11:53:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=A3=80=E6=B5=8B=E5=8F=82?= =?UTF-8?q?=E6=95=B0behavior=E6=94=B9=E4=B8=BA=20before=5Fbehavior?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Route.php b/library/think/Route.php index 365a2d4a..1b6a08c7 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -460,7 +460,7 @@ class Route || (isset($option['ext']) && false === stripos($option['ext'], __EXT__)) // 伪静态后缀检测 || (isset($option['domain']) && !in_array($option['domain'], [$_SERVER['HTTP_HOST'], self::$subDomain])) // 域名检测 || (!empty($option['https']) && !self::isSsl()) // https检测 - || (!empty($option['behavior']) && false === Hook::exec($option['behavior'])) // 行为检测 + || (!empty($option['before_behavior']) && false === Hook::exec($option['before_behavior'])) // 行为检测 || (!empty($option['callback']) && is_callable($option['callback']) && false === call_user_func($option['callback'])) // 自定义检测 ) { return false;