diff --git a/library/think/Route.php b/library/think/Route.php index 0c86281b..6e08c0fd 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -405,7 +405,7 @@ class Route { // 请求类型检测 if ((isset($option['method']) && false === stripos($option['method'], REQUEST_METHOD)) - || (isset($option['ext']) && __EXT__ != $option['ext']) // 伪静态后缀检测 + || (isset($option['ext']) && false === stripos($option['ext'], __EXT__)) // 伪静态后缀检测 || (isset($option['domain']) && $_SERVER['HTTP_HOST'] != $option['domain']) // 域名检测 || (!empty($option['https']) && !self::isSsl()) // https检测 || (!empty($option['behavior']) && false === Hook::exec($option['behavior'])) // 行为检测