Merge pull request #698 from skipperbent/v5-development

Version 5.4.1.4
This commit is contained in:
Simon Sessingø
2023-11-29 01:22:27 +01:00
committed by GitHub

View File

@@ -406,7 +406,7 @@ class Request
public function setHost(?string $host): void
{
// Strip any potential ports from hostname
if (strpos($host, ':') !== false) {
if (strpos((string)$host, ':') !== false) {
$host = strstr($host, strrchr($host, ':'), true);
}