From e9ce137e145324d9413c149ac4ae14658845e32b Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 15 Jun 2017 19:49:51 +0200 Subject: [PATCH] Display invalid hosts --- src/Ui/UiRequest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ui/UiRequest.py b/src/Ui/UiRequest.py index 689a8bc2..ffa0b6de 100644 --- a/src/Ui/UiRequest.py +++ b/src/Ui/UiRequest.py @@ -67,7 +67,7 @@ class UiRequest(object): # Check if host allowed to do request if not self.isHostAllowed(self.env.get("HTTP_HOST")): - return self.error403("Invalid host", details=False) + return self.error403("Invalid host: %s" % self.env.get("HTTP_HOST"), details=False) path = re.sub("^http://zero[/]+", "/", path) # Remove begining http://zero/ for chrome extension path = re.sub("^http://", "/", path) # Remove begining http for chrome extension .bit access @@ -622,7 +622,7 @@ class UiRequest(object): return """

%s

%s

- """ % (title, message) + """ % (title, cgi.escape(message)) # - Reload for eaiser developing -