From a4e344cdb46e6ad016bf228b02da79d2eb0dd678 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 28 Feb 2016 22:17:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Url=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Url.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Url.php b/library/think/Url.php index 67944115..8b9f0325 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -40,9 +40,9 @@ class Url // 解析域名 list($anchor, $domain) = explode('@', $anchor, 2); } - } elseif (false !== strpos($url, '@')) { + } elseif (strpos($url, '@')) { // 解析域名 - list($url, $domain) = explode('@', $info['path'], 2); + list($url, $domain) = explode('@', $url, 2); } // 解析参数