hgweb: use native strings consistently for querystring parsing
authorAugie Fackler <augie@google.com>
Thu, 05 Oct 2017 14:48:52 -0400
changeset 34703 d1fccbd50fcd
parent 34702 b2316265a32e
child 34704 c51380879054
hgweb: use native strings consistently for querystring parsing Differential Revision: https://phab.mercurial-scm.org/D1078
mercurial/hgweb/hgweb_mod.py
mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Thu Oct 05 14:48:31 2017 -0400
+++ b/mercurial/hgweb/hgweb_mod.py	Thu Oct 05 14:48:52 2017 -0400
@@ -187,7 +187,7 @@
         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:
--- a/mercurial/hgweb/hgwebdir_mod.py	Thu Oct 05 14:48:31 2017 -0400
+++ b/mercurial/hgweb/hgwebdir_mod.py	Thu Oct 05 14:48:52 2017 -0400
@@ -508,7 +508,7 @@
         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')