diff MoinMoin/action/AttachFile.py @ 4651:aa481a3b6a60

AttachFile: fix another exception when someone just clicks on upload, without giving a file
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 14 Mar 2009 17:39:39 +0100
parents e673b8b21dc2
children 621c708ecddb
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Sat Mar 14 17:27:56 2009 +0100
+++ b/MoinMoin/action/AttachFile.py	Sat Mar 14 17:39:39 2009 +0100
@@ -557,7 +557,7 @@
     if rename:
         target = rename
     else:
-        target = file_upload.filename
+        target = file_upload.filename or u''
 
     target = wikiutil.clean_input(target)