hgwebdir: read 'web.template' untrusted
authorBoris Feld <boris.feld@octobus.net>
Fri, 15 Sep 2017 18:57:50 +0200
changeset 34248 b59620c52eec
parent 34247 95f80c095804
child 34249 ab379eed2e31
hgwebdir: read 'web.template' untrusted The 'hgweb_mod.py' version of this read it untrusted. For consistency we align the two versions of this code.
mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py	Fri Jun 30 03:45:53 2017 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Fri Sep 15 18:57:50 2017 +0200
@@ -174,7 +174,7 @@
         self.ui = u
         encoding.encoding = self.ui.config('web', 'encoding')
         self.style = self.ui.config('web', 'style')
-        self.templatepath = self.ui.config('web', 'templates')
+        self.templatepath = self.ui.config('web', 'templates', untrusted=False)
         self.stripecount = self.ui.config('web', 'stripes')
         if self.stripecount:
             self.stripecount = int(self.stripecount)