mercurial/hgweb/hgwebdir_mod.py
changeset 2359 a392eaa81f29
parent 2358 8819fc1dcf4b
child 2360 25ec4981883e
--- a/mercurial/hgweb/hgwebdir_mod.py	Thu Jun 01 10:02:24 2006 -0500
+++ b/mercurial/hgweb/hgwebdir_mod.py	Thu Jun 01 17:51:40 2006 +0200
@@ -58,9 +58,10 @@
                                              "footer": footer})
 
         def archivelist(ui, nodeid, url):
-            al = ui.config("web", "allow_archive", "").split()
+            allowed = (ui.config("web", "allow_archive", "")
+                       .replace(",", " ").split())
             for i in ['zip', 'gz', 'bz2']:
-                if i in al or ui.configbool("web", "allow" + i, False):
+                if i in allowed or ui.configbool("web", "allow" + i):
                     yield {"type" : i, "node": nodeid, "url": url}
 
         def entries(sortcolumn="", descending=False, **map):