Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 3606:f8589028a7fa
hgweb: split URLs containing spaces or other escaped characters correctly
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 31 Oct 2006 18:10:23 -0800 |
parents | fc34fd58ae7b |
children | 44cd1eb72fd7 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Tue Oct 31 17:31:30 2006 -0800 +++ b/mercurial/hgweb/hgweb_mod.py Tue Oct 31 18:10:23 2006 -0800 @@ -708,7 +708,7 @@ return '%s%s%s' % (url.startswith('/') and '/' or '', inner, tl) - root = normurl(req.env.get('REQUEST_URI', '').split('?', 1)[0]) + root = normurl(urllib.unquote(req.env.get('REQUEST_URI', '').split('?', 1)[0])) pi = normurl(req.env.get('PATH_INFO', '')) if pi: # strip leading /