From 6ec4605e641893a745fd85ab6634291cf96e74aa Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 17 Oct 2013 10:40:06 +0200 Subject: [PATCH] Deliver static content from same domain if accessing admin.ipfire.org. --- webapp/handlers_base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/handlers_base.py b/webapp/handlers_base.py index 9ff886aa..e44d203a 100644 --- a/webapp/handlers_base.py +++ b/webapp/handlers_base.py @@ -98,7 +98,10 @@ class BaseHandler(tornado.web.RequestHandler): if self.settings.get("debug", False): return ret - if static: + elif self.request.host == "admin.ipfire.org": + return ret + + elif static: return "http://static.ipfire.org%s" % ret return ret -- 2.47.3