##// END OF EJS Templates
hgweb: fix trust of templates path (BC)...
Matt Mackall -
r26120:1a45e49a 3.5.1 stable
parent child Browse files
Show More
@@ -89,9 +89,10 b' class hgweb(object):'
89 self.reponame = name
89 self.reponame = name
90 self.archives = 'zip', 'gz', 'bz2'
90 self.archives = 'zip', 'gz', 'bz2'
91 self.stripecount = 1
91 self.stripecount = 1
92 # a repo owner may set web.templates in .hg/hgrc to get any file
92 # we use untrusted=False to prevent a repo owner from using
93 # readable by the user running the CGI script
93 # web.templates in .hg/hgrc to get access to any file readable
94 self.templatepath = self.config('web', 'templates')
94 # by the user running the CGI script
95 self.templatepath = self.config('web', 'templates', untrusted=False)
95 self.websubtable = self.loadwebsub()
96 self.websubtable = self.loadwebsub()
96
97
97 # The CGI scripts are often run by a user different from the repo owner.
98 # The CGI scripts are often run by a user different from the repo owner.
General Comments 0
You need to be logged in to leave comments. Login now