From eaf16fcc2e28efa74e180969aac1966147aaaad6 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Tue, 24 Oct 2017 14:21:27 -0400 Subject: [PATCH] trust getHost() --- controller/Request.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controller/Request.class.php b/controller/Request.class.php index b854c869..5e8fec11 100644 --- a/controller/Request.class.php +++ b/controller/Request.class.php @@ -94,8 +94,7 @@ class Request public static function getSubDomain(): string { - $urlParts = parse_url(static::getHost()); - $host = $urlParts['host'] ?? ''; + $host = static::getHost(); $domainParts = explode('.', $host); $domainPartCount = count($domainParts);