comparison mercurial/hgweb/hgwebdir_mod.py @ 34703:d1fccbd50fcd

hgweb: use native strings consistently for querystring parsing Differential Revision: https://phab.mercurial-scm.org/D1078
author Augie Fackler <augie@google.com>
date Thu, 05 Oct 2017 14:48:52 -0400
parents b2316265a32e
children c6061cadb400 ff2370a70fe8
comparison
equal deleted inserted replaced
34702:b2316265a32e 34703:d1fccbd50fcd
506 styles, (style, mapfile) = hgweb_mod.getstyle(req, config, 506 styles, (style, mapfile) = hgweb_mod.getstyle(req, config,
507 self.templatepath) 507 self.templatepath)
508 if style == styles[0]: 508 if style == styles[0]:
509 vars['style'] = style 509 vars['style'] = style
510 510
511 start = '&' if url[-1] == '?' else '?' 511 start = r'&' if url[-1] == r'?' else r'?'
512 sessionvars = webutil.sessionvars(vars, start) 512 sessionvars = webutil.sessionvars(vars, start)
513 logourl = config('web', 'logourl') 513 logourl = config('web', 'logourl')
514 logoimg = config('web', 'logoimg') 514 logoimg = config('web', 'logoimg')
515 staticurl = config('web', 'staticurl') or url + 'static/' 515 staticurl = config('web', 'staticurl') or url + 'static/'
516 if not staticurl.endswith('/'): 516 if not staticurl.endswith('/'):