mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
trust getHost()
This commit is contained in:
parent
d5360991c3
commit
eaf16fcc2e
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue