Mercurial > hg
diff mercurial/hgweb/hgweb_mod.py @ 38745:258d90f69076 stable
hgweb: strip trailing '/' in apppath before appending '/static/' (issue5943)
Differential Revision: https://phab.mercurial-scm.org/D3978
author | Cédric Krier <ced@b2ck.com> |
---|---|
date | Wed, 25 Jul 2018 10:05:24 +0200 |
parents | 519b46a8f4d2 |
children | 4167437a45dd |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Fri Jul 20 09:08:20 2018 +0200 +++ b/mercurial/hgweb/hgweb_mod.py Wed Jul 25 10:05:24 2018 +0200 @@ -136,7 +136,7 @@ logourl = self.config('web', 'logourl') logoimg = self.config('web', 'logoimg') staticurl = (self.config('web', 'staticurl') - or req.apppath + '/static/') + or req.apppath.rstrip('/') + '/static/') if not staticurl.endswith('/'): staticurl += '/'