# HG changeset patch # User Augie Fackler # Date 2017-10-05 18:48:52 # Node ID d1fccbd50fcd081fc98c88f30701ba029d7c2505 # Parent b2316265a32eaffc2c9b598f691e51d1431b5d3a hgweb: use native strings consistently for querystring parsing Differential Revision: https://phab.mercurial-scm.org/D1078 diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -187,7 +187,7 @@ class requestcontext(object): if style == styles[0]: vars['style'] = style - start = '&' if req.url[-1] == '?' else '?' + start = r'&' if req.url[-1] == r'?' else r'?' sessionvars = webutil.sessionvars(vars, start) if not self.reponame: diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -508,7 +508,7 @@ class hgwebdir(object): if style == styles[0]: vars['style'] = style - start = '&' if url[-1] == '?' else '?' + start = r'&' if url[-1] == r'?' else r'?' sessionvars = webutil.sessionvars(vars, start) logourl = config('web', 'logourl') logoimg = config('web', 'logoimg')