diff MoinMoin/formatter/text_html.py @ 828:902c34d95085

quoting for attachment filenames, wikiutil.load_wikimap, split_wiki can parse quoting, join_wiki does url_quote
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 11 Jun 2006 17:48:25 +0200
parents bf2435e61f97
children 97ce857bdebf 3172214eac96
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py	Sun Jun 11 02:19:09 2006 +0200
+++ b/MoinMoin/formatter/text_html.py	Sun Jun 11 17:48:25 2006 +0200
@@ -502,7 +502,7 @@
         """
         @keyword title: override using the interwiki wikiname as title
         """
-        wikitag, wikiurl, wikitail, wikitag_bad = wikiutil.resolve_wiki(self.request, '%s:%s' % (interwiki, pagename))
+        wikitag, wikiurl, wikitail, wikitag_bad = wikiutil.resolve_wiki(self.request, '%s:"%s"' % (interwiki, pagename))
         wikiurl = wikiutil.mapURL(self.request, wikiurl)
         if wikitag == 'Self': # for own wiki, do simple links
             if on:
@@ -626,6 +626,7 @@
     def attachment_link(self, url, text, **kw):
         _ = self.request.getText
         pagename, filename = AttachFile.absoluteName(url, self.page.page_name)
+        #self.request.log("attachment_link: url %s pagename %s filename %s" % (url, pagename, filename))
         fname = wikiutil.taintfilename(filename)
         fpath = AttachFile.getFilename(self.request, pagename, fname)
         if not os.path.exists(fpath):
@@ -694,8 +695,7 @@
 
         # check for map file
         if os.path.exists(mappath):
-            # we have a image map. inline it and add a map ref
-            # to the img tag
+            # we have a image map. inline it and add a map ref to the img tag
             try:
                 map = file(mappath, 'r').read()
             except IOError: