From d615a6d59d842397ef2a0a2116050b61e537d189 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 14 Dec 2015 12:42:04 +0800 Subject: [PATCH] =?UTF-8?q?Url=E7=B1=BBparseSuffix=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/url.php b/library/think/url.php index 53088d4a..b8d2f254 100644 --- a/library/think/url.php +++ b/library/think/url.php @@ -93,7 +93,7 @@ class Url $suffix = substr($suffix, 0, $pos); } } - return $suffix; + return 0 === strpos($suffix,'.') ? $suffix : '.'.$suffix; } // 根据路由名称和参数生成URL地址