mirror of
https://github.com/getgrav/grav.git
synced 2026-07-13 13:02:15 +02:00
Change minimal port number to 0 (unix socket) (#2452)
This commit is contained in:
@@ -84,11 +84,11 @@ class UriPartsFilter
|
||||
*/
|
||||
public static function filterPort($port = null)
|
||||
{
|
||||
if (null === $port || (\is_int($port) && ($port >= 1 && $port <= 65535))) {
|
||||
if (null === $port || (\is_int($port) && ($port >= 0 && $port <= 65535))) {
|
||||
return $port;
|
||||
}
|
||||
|
||||
throw new \InvalidArgumentException('Uri port must be null or an integer between 1 and 65535');
|
||||
throw new \InvalidArgumentException('Uri port must be null or an integer between 0 and 65535');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user