changeset 2787:1cb372eb7935

EmbedObject:bug fix escaped url
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 30 Aug 2007 16:32:05 +0200
parents a16ba90d1f7e
children e857c1c3eca1
files MoinMoin/macro/EmbedObject.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/EmbedObject.py	Wed Aug 29 19:46:01 2007 +0200
+++ b/MoinMoin/macro/EmbedObject.py	Thu Aug 30 16:32:05 2007 +0200
@@ -204,7 +204,7 @@
             mimestr = "%s/%s" % (mt.major, mt.minor, )
         else:
             mt = wikiutil.MimeType(filename=self.guess_filename)
-            url = self.target
+            url = wikiutil.escape(self.target)
 
         # XXX Should better use formatter.embed if available?
         return self.macro.formatter.rawHTML(self.embed(mt, url))