From 3fdd4f1009e2414482cf46c84de7d33ae6729a4e Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 13 Oct 2016 14:18:01 +0800 Subject: [PATCH] =?UTF-8?q?Route=E9=87=8D=E5=AE=9A=E5=90=91=E8=A7=84?= =?UTF-8?q?=E5=88=99=E6=94=AF=E6=8C=81=E6=9B=B4=E5=A4=9A=20schema?= 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 4b588b5e..8ecbcb7e 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1414,7 +1414,7 @@ class Route if ($route instanceof \Closure) { // 执行闭包 $result = ['type' => 'function', 'function' => $route]; - } elseif (0 === strpos($route, '/') || 0 === strpos($route, 'http')) { + } elseif (0 === strpos($route, '/') || strpos($route, '://')) { // 路由到重定向地址 $result = ['type' => 'redirect', 'url' => $route, 'status' => isset($option['status']) ? $option['status'] : 301]; } elseif (false !== strpos($route, '\\')) {