mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
subdomains: Add support for aliases of the root subdomain.
We default to counting "www" as such an alias.
This commit is contained in:
@@ -193,6 +193,8 @@ def get_subdomain(request):
|
||||
if index == -1:
|
||||
return ""
|
||||
subdomain = domain[0:index]
|
||||
if subdomain in settings.ROOT_SUBDOMAIN_ALIASES:
|
||||
return ""
|
||||
return subdomain
|
||||
|
||||
def check_subdomain(realm_subdomain, user_subdomain):
|
||||
|
||||
Reference in New Issue
Block a user