diff MoinMoin/action/AttachFile.py @ 2015:41995fbf3d92

AttachFile: bug fixed packages are not restricted to zip extension
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 20 Apr 2007 21:12:13 +0200
parents 6d6379c9a1c9
children dd3a1da58c28
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Fri Apr 20 21:07:40 2007 +0200
+++ b/MoinMoin/action/AttachFile.py	Fri Apr 20 21:12:13 2007 +0200
@@ -1002,7 +1002,7 @@
         return
 
     package = packages.ZipPackage(request, fpath)
-    if package.isPackage() and mt.minor == 'zip':
+    if package.isPackage():
         request.write("<pre><b>%s</b>\n%s</pre>" % (_("Package script:"), wikiutil.escape(package.getScript())))
         return