Rev1861, Fix favicon for zero url access type

This commit is contained in:
shortcutme 2017-02-05 22:55:24 +01:00
parent 4988d31aff
commit f74e9397db
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 6 additions and 2 deletions

View file

@ -10,7 +10,7 @@ class Config(object):
def __init__(self, argv): def __init__(self, argv):
self.version = "0.5.1" self.version = "0.5.1"
self.rev = 1859 self.rev = 1861
self.argv = argv self.argv = argv
self.action = None self.action = None
self.config_file = "zeronet.conf" self.config_file = "zeronet.conf"

View file

@ -240,7 +240,11 @@ class UiRequest(object):
address = re.sub("/.*", "", path.lstrip("/")) address = re.sub("/.*", "", path.lstrip("/"))
if self.isProxyRequest() and (not path or "/" in path[1:]): if self.isProxyRequest() and (not path or "/" in path[1:]):
file_url = re.sub(".*/", "", inner_path) file_url = re.sub(".*/", "", inner_path)
root_url = "/" if self.env["HTTP_HOST"] == "zero":
root_url = "/" + address + "/"
else:
root_url = "/"
else: else:
file_url = "/" + address + "/" + inner_path file_url = "/" + address + "/" + inner_path
root_url = "/" + address + "/" root_url = "/" + address + "/"