Merge pull request #693 from skipperbent/v5-development

Version 5.4.1.2
This commit is contained in:
Simon Sessingø
2023-11-27 08:00:51 +01:00
committed by GitHub
+5
View File
@@ -164,6 +164,11 @@ class Url implements JsonSerializable
*/
public function setHost(string $host): self
{
// Strip any potential ports from hostname
if (strpos($host, ':') !== false) {
$host = strstr($host, strrchr($host, ':'), true);
}
$this->host = $host;
return $this;