--- a/mercurial/hgweb/hgwebdir_mod.py Thu Jul 30 21:36:29 2020 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py Wed Aug 05 13:33:07 2020 -0700
@@ -537,8 +537,9 @@
return res.sendresponse()
def templater(self, req, nonce):
- def config(section, name, default=uimod._unset, untrusted=True):
- return self.ui.config(section, name, default, untrusted)
+ def config(*args, **kwargs):
+ kwargs.setdefault('untrusted', True)
+ return self.ui.config(*args, **kwargs)
vars = {}
styles, (style, mapfile) = hgweb_mod.getstyle(