This commit is contained in:
thinkphp
2018-04-27 17:25:28 +08:00
parent 4c046575b6
commit d8b38366fb

View File

@@ -1353,7 +1353,7 @@ class Request
$host = $this->server('HTTP_HOST');
}
return true === $strict ? strstr($host, ':', true) : $host;
return true === $strict && strpos($host, ':') ? strstr($host, ':', true) : $host;
}
/**