changeset 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 b8de0a47ad95
children e55ae6646935
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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