Compare commits

..

2 Commits

Author SHA1 Message Date
Simon Sessingø d75af212e9 Merge pull request #693 from skipperbent/v5-development
Version 5.4.1.2
2023-11-27 08:00:51 +01:00
Simon 64483652ff Strip any potential port number from hostname 2023-11-27 07:58:49 +01:00
+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;