diff MoinMoin/action/AttachFile.py @ 3040:8608b258f8e6

bug fix of MoinMoinBugs/MoveAttachmentNotWorkingWithModPython (thanks to Boleslaw Kulbabinski) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 05 Feb 2008 21:22:56 +0100
parents 4ec124c124c9
children 78c516164e01
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Mon Feb 04 10:17:58 2008 +0100
+++ b/MoinMoin/action/AttachFile.py	Tue Feb 05 21:22:56 2008 +0100
@@ -826,9 +826,11 @@
 
     # move file
     d = {'action': 'AttachFile',
+         'baseurl': request.getScriptname(),
          'do': 'attachment_move',
          'ticket': wikiutil.createTicket(request),
          'pagename': pagename,
+         'pagename_quoted': wikiutil.quoteWikinameURL(pagename),
          'attachment_name': filename,
          'move': _('Move'),
          'cancel': _('Cancel'),
@@ -836,7 +838,7 @@
          'attachment_label': _("New attachment name"),
         }
     formhtml = '''
-<form method="post" action="">
+<form action="%(baseurl)s/%(pagename_quoted)s" method="POST">
 <input type="hidden" name="action" value="%(action)s">
 <input type="hidden" name="do" value="%(do)s">
 <input type="hidden" name="ticket" value="%(ticket)s">