Don't assume port 0 for X-Forwarded-Port
This commit is contained in:
parent
eb4026b3f4
commit
23db9be884
@ -1037,7 +1037,7 @@ class Request
|
|||||||
$pos = strrpos($host, ':');
|
$pos = strrpos($host, ':');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false !== $pos) {
|
if (false !== $pos && !empty(substr($host, $pos + 1))) {
|
||||||
return (int) substr($host, $pos + 1);
|
return (int) substr($host, $pos + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user