Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 620:7369ec5d93f2
Attempt to handle RSS URIs properly
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Attempt to handle RSS URIs properly
manifest hash: 1546939c11a8640ca56f0b0f5c7bdc878b4faa67
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCycliywK+sNU5EO8RAukgAJ9eoJdqTiTQ8xSsSeHMIBmHnnQk9QCfQpFL
SAJKUYknvv4IJDUyHjQc61k=
=zGdJ
-----END PGP SIGNATURE-----
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 04 Jul 2005 15:42:26 -0800 |
parents | 8e82fd763be2 |
children | 85e2209d401c |
comparison
equal
deleted
inserted
replaced
619:d96c1153b25d | 620:7369ec5d93f2 |
---|---|
608 p = os.path.join(self.templates, b) | 608 p = os.path.join(self.templates, b) |
609 if os.path.isfile(p): m = p | 609 if os.path.isfile(p): m = p |
610 | 610 |
611 port = os.environ["SERVER_PORT"] | 611 port = os.environ["SERVER_PORT"] |
612 port = port != "80" and (":" + port) or "" | 612 port = port != "80" and (":" + port) or "" |
613 url = "http://%s%s%s" % \ | 613 uri = os.environ["REQUEST_URI"] |
614 (os.environ["SERVER_NAME"], port, os.environ["REQUEST_URI"]) | 614 if "?" in uri: uri = uri.split("?")[0] |
615 url = "http://%s%s%s" % (os.environ["SERVER_NAME"], port, uri) | |
615 | 616 |
616 self.t = templater(m, self.filters, | 617 self.t = templater(m, self.filters, |
617 {"url":url, | 618 {"url":url, |
618 "repo":self.reponame, | 619 "repo":self.reponame, |
619 "header":self.header(), | 620 "header":self.header(), |