hgweb: don't use raw string for session vars
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 22 Jan 2019 18:07:51 -0800
changeset 41319 46781c1b5049
parent 41318 6e54caaed08d
child 41320 f790a4e78e97
hgweb: don't use raw string for session vars This r'' is leaking into the templating layer and causing an assertion failure. The r'' was added in d1fccbd50fcd (October 2017). Similar code in hgweb_mod.py was also changed in that changeset. hgweb_mod.py was updated in ec46415ed826 (March 2018) to use webutil.sessionvars(), which doesn't use raw strings. Differential Revision: https://phab.mercurial-scm.org/D5651
mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py	Tue Jan 22 17:50:52 2019 -0800
+++ b/mercurial/hgweb/hgwebdir_mod.py	Tue Jan 22 18:07:51 2019 -0800
@@ -510,7 +510,7 @@
         if style == styles[0]:
             vars['style'] = style
 
-        sessionvars = webutil.sessionvars(vars, r'?')
+        sessionvars = webutil.sessionvars(vars, '?')
         logourl = config('web', 'logourl')
         logoimg = config('web', 'logoimg')
         staticurl = (config('web', 'staticurl')