Merge pull request #695 from skipperbent/v5-development

Version 5.4.1.3
This commit is contained in:
Simon Sessingø
2023-11-27 08:08:55 +01:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+5
View File
@@ -405,6 +405,11 @@ class Request
*/
public function setHost(?string $host): void
{
// Strip any potential ports from hostname
if (strpos($host, ':') !== false) {
$host = strstr($host, strrchr($host, ':'), true);
}
$this->host = $host;
}
-5
View File
@@ -164,11 +164,6 @@ 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;