changeset 2552:88ea1324d55e

macro.Action.py: fixed bug in in using Parameters for e.g. Edit (thanks to Johannes Berg)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 20 Jul 2007 16:26:40 +0200
parents f3b684afca81
children eb3297891475
files MoinMoin/macro/Action.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/Action.py	Mon Jul 23 20:37:53 2007 +0200
+++ b/MoinMoin/macro/Action.py	Fri Jul 20 16:26:40 2007 +0200
@@ -75,12 +75,11 @@
         text = self.args.get('text', action)
         text = _(text, formatted=False)
         text = wikiutil.escape(text, 1)
+        action, args = action.split('&', 1)
         if action in self.getValidActions():
-            # Escape user input
-            action = wikiutil.escape(action, 1)
             # Create link
             page = self.macro.formatter.page
-            link = page.link_to(self.request, text, querystr='action=%s' % action)
+            link = page.link_to(self.request, text, querystr='action=%s&%s' % (action, args))
             return link
         else:
             return text