##// END OF EJS Templates
fix traceback in hgweb when URL doesn't end in one of the archive specs...
Ali Saidi -
r6669:782dbbdf default
parent child Browse files
Show More
@@ -109,7 +109,7 b' def filelog(web, req, tmpl):'
109 return web.filelog(tmpl, web.filectx(req))
109 return web.filelog(tmpl, web.filectx(req))
110
110
111 def archive(web, req, tmpl):
111 def archive(web, req, tmpl):
112 type_ = req.form['type'][0]
112 type_ = req.form.get('type', [None])[0]
113 allowed = web.configlist("web", "allow_archive")
113 allowed = web.configlist("web", "allow_archive")
114 if (type_ in web.archives and (type_ in allowed or
114 if (type_ in web.archives and (type_ in allowed or
115 web.configbool("web", "allow" + type_, False))):
115 web.configbool("web", "allow" + type_, False))):
General Comments 0
You need to be logged in to leave comments. Login now