[HttpFoundation] fixed a small regression
This commit is contained in:
parent
a12c685e3c
commit
aad8136cd1
@ -813,7 +813,7 @@ class Request
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Trim and remove port number from host
|
// Trim and remove port number from host
|
||||||
$host = trim(preg_replace('/:\d+$/', '', $host));
|
$host = preg_replace('/:\d+$/', '', trim($host));
|
||||||
|
|
||||||
// as the host can come from the user (HTTP_HOST and depending on the configuration, SERVER_NAME too can come from the user)
|
// as the host can come from the user (HTTP_HOST and depending on the configuration, SERVER_NAME too can come from the user)
|
||||||
// check that it does not contain forbidden characters (see RFC 952 and RFC 2181)
|
// check that it does not contain forbidden characters (see RFC 952 and RFC 2181)
|
||||||
|
Reference in New Issue
Block a user