diff MoinMoin/action/__init__.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 ba14d391c2ba
children a739558ca3dc
line wrap: on
line diff
--- a/MoinMoin/action/__init__.py	Mon Feb 04 10:17:58 2008 +0100
+++ b/MoinMoin/action/__init__.py	Tue Feb 05 21:22:56 2008 +0100
@@ -130,17 +130,19 @@
 
         d = {
             'method': self.method,
+            'baseurl': self.request.getScriptname(),
             'enctype': self.enctype,
             'error_html': error_html,
             'actionname': self.actionname,
             'pagename': self.pagename,
+            'pagename_quoted': wikiutil.quoteWikinameURL(self.pagename),
             'ticket_html': ticket_html,
             'user_html': self.get_form_html(buttons_html),
         }
 
         form_html = '''
 %(error_html)s
-<form action="" method="%(method)s" enctype="%(enctype)s">
+<form action="%(baseurl)s/%(pagename_quoted)s" method="%(method)s" enctype="%(enctype)s">
 <div>
 <input type="hidden" name="action" value="%(actionname)s">
 %(ticket_html)s