From f035ed944fe68f944e43b49200ceaded3ac1efa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E7=BB=B4=E6=9D=B0?= <917647288@qq.com> Date: Mon, 14 Dec 2015 15:35:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=90=8E=E7=BC=80?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=BA=E7=A9=BA=E6=97=B6=20=20=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=20.=20=E7=9A=84bug?= 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 b8d2f254..b8adefbe 100644 --- a/library/think/url.php +++ b/library/think/url.php @@ -93,7 +93,7 @@ class Url $suffix = substr($suffix, 0, $pos); } } - return 0 === strpos($suffix,'.') ? $suffix : '.'.$suffix; + return 0 === strpos($suffix,'.') ? $suffix : (empty($suffix)? $suffix: '.'.$suffix); } // 根据路由名称和参数生成URL地址