mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
c.cname issue: should be checking that we are not on a sub domain of g.domain
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user