mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Subdomains can be on subdomains.
This commit is contained in:
parent
51e8bc834f
commit
52bff3abe3
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ ALLOWED_SUBDOMAINS = [
|
|||
|
||||
def get_subdomain(request):
|
||||
host = request.META.get('HTTP_HOST')
|
||||
if host and host.count(".") == 2:
|
||||
if host and host.count(".") >= 2:
|
||||
return host.split(".")[0]
|
||||
else:
|
||||
return None
|
||||
|
|
Loading…
Add table
Reference in a new issue