diff MoinMoin/action/AttachFile.py @ 4632:81598e8c735b

AttachFile do=view: quote filename and pagename params for EmbedObject macro call
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 21 Feb 2009 19:23:44 +0100
parents 0d03855518a4
children 83483f4e26cb 321ca881ce70
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Fri Feb 20 02:09:29 2009 +0100
+++ b/MoinMoin/action/AttachFile.py	Sat Feb 21 19:23:44 2009 +0100
@@ -1038,7 +1038,7 @@
                 fmt.url(0))
         request.write('For using an external program follow this link %s' % link)
         return
-    request.write(m.execute('EmbedObject', u'target=%s, pagename=%s' % (filename, pagename)))
+    request.write(m.execute('EmbedObject', u'target="%s", pagename="%s"' % (filename, pagename)))
     return