changeset 1610:48194fc011e5

move attachments: fix ticket calls
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 08 Oct 2006 21:10:09 +0200
parents 7f73dafb525d
children 435e0748d573
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Sun Oct 08 21:02:03 2006 +0200
+++ b/MoinMoin/action/AttachFile.py	Sun Oct 08 21:10:09 2006 +0200
@@ -535,7 +535,7 @@
             msg = _('Move aborted!')
             error_msg(pagename, request, msg)
             return
-        if not wikiutil.checkTicket(request.form['ticket'][0]):
+        if not wikiutil.checkTicket(request, request.form['ticket'][0]):
             msg = _('Please use the interactive user interface to move attachments!')
             error_msg(pagename, request, msg)
             return
@@ -735,7 +735,7 @@
     # move file
     d = {'action': 'AttachFile',
          'do': 'attachment_move',
-         'ticket': wikiutil.createTicket(),
+         'ticket': wikiutil.createTicket(request),
          'pagename': pagename,
          'attachment_name': filename,
          'move': _('Move'),