changeset 3084:a6aaae4bded0

fix relative attachment targets
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 12 Jan 2008 18:17:13 +0100
parents f2564609f601
children fdb68a8f92da
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Sat Jan 05 02:57:30 2008 +0100
+++ b/MoinMoin/action/AttachFile.py	Sat Jan 12 18:17:13 2008 +0100
@@ -84,6 +84,7 @@
         @rtype: tuple of unicode
         @return: PageName, filename.ext
     """
+    url = wikiutil.AbsPageName(pagename, url)
     pieces = url.split(u'/')
     if len(pieces) == 1:
         return pagename, pieces[0]