changeset 6670:be55b1a6d4b1

merge from crew-stable
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 13 Jun 2008 12:34:23 +0200
parents 034f444902d9 (current diff) 782dbbdfb1d7 (diff)
children 938eddd76237
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Thu Jun 12 07:38:15 2008 -0500
+++ b/mercurial/hgweb/webcommands.py	Fri Jun 13 12:34:23 2008 +0200
@@ -538,7 +538,7 @@
 
 
 def archive(web, req, tmpl):
-    type_ = req.form['type'][0]
+    type_ = req.form.get('type', [None])[0]
     allowed = web.configlist("web", "allow_archive")
     key = req.form['node'][0]