This commit is contained in:
hufangzhou
2022-04-18 16:45:12 +08:00
parent 878f310f3d
commit bc381ede7d
+1
View File
@@ -2672,6 +2672,7 @@ EOT;
$autoloadPage = true;
if(!empty($doc) and $doc->type == 'url')
{
if(!preg_match('/^https?:\/\//', $doc->content)) $doc->content = 'http://' . $doc->content;
$parsedUrl = parse_url($doc->content);
$urlPort = isset($parsedUrl['port']) ? ':' . $parsedUrl['port'] : '';
$urlDomain = $parsedUrl['host'] . $urlPort;