mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 15:28:37 -05:00
Add oauth_domain to globals, and add to secure_domains.
This commit is contained in:
@@ -394,7 +394,8 @@ class Globals(object):
|
||||
https_url = urlparse(self.https_endpoint)
|
||||
self.secure_domains.add(https_url.netloc)
|
||||
self.trusted_domains.add(https_url.hostname)
|
||||
|
||||
if getattr(self, 'oauth_domain', None):
|
||||
self.secure_domains.add(self.oauth_domain)
|
||||
|
||||
# load the unique hashed names of files under static
|
||||
static_files = os.path.join(self.paths.get('static_files'), 'static')
|
||||
|
||||
Reference in New Issue
Block a user