mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
fix array size check on subdomain
This commit is contained in:
parent
abe242e86e
commit
d5360991c3
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class Request
|
|||
|
||||
$isLocalhost = $domainParts[$domainPartCount - 1] === 'localhost';
|
||||
|
||||
if (!$isLocalhost && count($domainParts) < 2)
|
||||
if (count($domainParts) < ($isLocalhost ? 2 : 3))
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue