c.cname issue: should be checking that we are not on a sub domain of g.domain

This commit is contained in:
Christopher Slowe
2008-08-26 09:09:18 -07:00
parent 544f611d54
commit 32a2677ebb

View File

@@ -262,7 +262,7 @@ def set_content_lang():
def set_cnameframe():
if (bool(request.params.get('cnameframe'))
or request.host.split(":")[0] != g.domain):
or not request.host.split(":")[0].endswith(g.domain)):
c.cname = True
def ratelimit_agents():