From d5360991c382f66dab72026d8b3671202e305c97 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Tue, 24 Oct 2017 14:11:32 -0400 Subject: [PATCH] fix array size check on subdomain --- controller/Request.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; }