Skip to content

Commit

Permalink
Display invalid hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Jun 15, 2017
1 parent 2f7bfa9 commit e9ce137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ui/UiRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def route(self, path):

# 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
Expand Down Expand Up @@ -622,7 +622,7 @@ def formatError(self, title, message, details=True):
return """
<h1>%s</h1>
<h2>%s</h3>
""" % (title, message)
""" % (title, cgi.escape(message))


# - Reload for eaiser developing -
Expand Down

0 comments on commit e9ce137

Please sign in to comment.