Update Request.php
This commit is contained in:
parent
23db9be884
commit
c266d6c737
@ -1037,8 +1037,8 @@ class Request
|
|||||||
$pos = strrpos($host, ':');
|
$pos = strrpos($host, ':');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false !== $pos && !empty(substr($host, $pos + 1))) {
|
if (false !== $pos && '' !== $port = substr($host, $pos + 1)) {
|
||||||
return (int) substr($host, $pos + 1);
|
return (int) $port;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'https' === $this->getScheme() ? 443 : 80;
|
return 'https' === $this->getScheme() ? 443 : 80;
|
||||||
|
Reference in New Issue
Block a user