diff --git a/controller/Request.class.php b/controller/Request.class.php index f2badcd4..b854c869 100644 --- a/controller/Request.class.php +++ b/controller/Request.class.php @@ -106,7 +106,7 @@ class Request $isLocalhost = $domainParts[$domainPartCount - 1] === 'localhost'; - if (!$isLocalhost && count($domainParts) < 2) + if (count($domainParts) < ($isLocalhost ? 2 : 3)) { return ''; }