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