From 70a6bff2aba76c836c41acdf635adb182760fc85 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 7 Jul 2017 10:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BUrl=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=AF=B9=E7=AB=AF=E5=8F=A3=E5=8F=B7=E7=9A=84=E6=94=AF=E6=8C=81?= 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 9f725e2c..3001daba 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -272,7 +272,7 @@ class Url $domain .= '.' . $rootDomain; } } - if (false !== strpos($domain, ':')) { + if (false !== strpos($domain, '://')) { $scheme = ''; } else { $scheme = $request->isSsl() || Config::get('is_https') ? 'https://' : 'http://';