fix array size check on subdomain

This commit is contained in:
Jeremy Kauffman 2017-10-24 14:11:32 -04:00
parent abe242e86e
commit d5360991c3

View file

@ -106,7 +106,7 @@ class Request
$isLocalhost = $domainParts[$domainPartCount - 1] === 'localhost';
if (!$isLocalhost && count($domainParts) < 2)
if (count($domainParts) < ($isLocalhost ? 2 : 3))
{
return '';
}