trust getHost()

This commit is contained in:
Jeremy Kauffman 2017-10-24 14:21:27 -04:00
parent d5360991c3
commit eaf16fcc2e

View file

@ -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);