changeset 4599:9275fb7a2bc2

AttachFile: get the rename field content from qs args, too
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 21 Feb 2009 18:37:09 +0100
parents bfab7aa26ac9
children deda6cd6c6d1
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Sat Feb 21 17:14:29 2009 +0100
+++ b/MoinMoin/action/AttachFile.py	Sat Feb 21 18:37:09 2009 +0100
@@ -470,7 +470,7 @@
     'action_name': action_name,
     'upload_label_file': _('File to upload'),
     'upload_label_rename': _('Rename to'),
-    'rename': wikiutil.escape(request.form.get('rename', ''), 1),
+    'rename': wikiutil.escape(request.values.get('rename', ''), 1),
     'upload_label_overwrite': _('Overwrite existing attachment of same name'),
     'overwrite_checked': ('', 'checked')[request.form.get('overwrite', '0') == '1'],
     'upload_button': _('Upload'),