changeset 620 | 7369ec5d93f2 |
parent 605 | 8e82fd763be2 |
child 635 | 85e2209d401c |
--- a/mercurial/hgweb.py Mon Jul 04 12:54:42 2005 -0800 +++ b/mercurial/hgweb.py Mon Jul 04 15:42:26 2005 -0800 @@ -610,8 +610,9 @@ port = os.environ["SERVER_PORT"] port = port != "80" and (":" + port) or "" - url = "http://%s%s%s" % \ - (os.environ["SERVER_NAME"], port, os.environ["REQUEST_URI"]) + uri = os.environ["REQUEST_URI"] + if "?" in uri: uri = uri.split("?")[0] + url = "http://%s%s%s" % (os.environ["SERVER_NAME"], port, uri) self.t = templater(m, self.filters, {"url":url,