comparison 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
comparison
equal deleted inserted replaced
4650:e673b8b21dc2 4651:aa481a3b6a60
555 555
556 rename = form.get('rename', u'').strip() 556 rename = form.get('rename', u'').strip()
557 if rename: 557 if rename:
558 target = rename 558 target = rename
559 else: 559 else:
560 target = file_upload.filename 560 target = file_upload.filename or u''
561 561
562 target = wikiutil.clean_input(target) 562 target = wikiutil.clean_input(target)
563 563
564 if not target: 564 if not target:
565 return _("Filename of attachment not specified!") 565 return _("Filename of attachment not specified!")