Show More
@@ -89,9 +89,10 b' class hgweb(object):' | |||
|
89 | 89 | self.reponame = name |
|
90 | 90 | self.archives = 'zip', 'gz', 'bz2' |
|
91 | 91 | self.stripecount = 1 |
|
92 | # a repo owner may set web.templates in .hg/hgrc to get any file | |
|
93 | # readable by the user running the CGI script | |
|
94 | self.templatepath = self.config('web', 'templates') | |
|
92 | # we use untrusted=False to prevent a repo owner from using | |
|
93 | # web.templates in .hg/hgrc to get access to any file readable | |
|
94 | # by the user running the CGI script | |
|
95 | self.templatepath = self.config('web', 'templates', untrusted=False) | |
|
95 | 96 | self.websubtable = self.loadwebsub() |
|
96 | 97 | |
|
97 | 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