changeset 6005:9a9ad16c62fb

Fixed image URL generation, avoiding script name duplication.
author Paul Boddie <paul@boddie.org.uk>
date Sat, 30 Nov 2013 19:47:54 +0100
parents 2061aa0dff6d
children 748a41f12915
files MoinMoin/formatter/text_docbook.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_docbook.py	Sat Nov 30 21:31:52 2013 +0800
+++ b/MoinMoin/formatter/text_docbook.py	Sat Nov 30 19:47:54 2013 +0100
@@ -440,7 +440,7 @@
             src = kw['src']
             if src.startswith("/"):
                 # convert to absolute path:
-                src = self.request.url_root + src
+                src = self.request.getQualifiedURL(src)
             image.setAttribute('fileref', src)
         if kw.has_key('width'):
             image.setAttribute('width', str(kw['width']))