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://';