Skip to content

Commit

Permalink
Change minimal port number to 0 (unix socket) (#2452)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tracerneo authored and rhukster committed Jun 11, 2019
1 parent d227a82 commit 30cfe3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/src/Grav/Framework/Uri/UriPartsFilter.php
Expand Up @@ -84,11 +84,11 @@ public static function filterHost($host)
*/
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');
}

/**
Expand Down

0 comments on commit 30cfe3b

Please sign in to comment.