changeset 107:fc0f131e591d

fixed MonthCalendar tooltip escaping imported from: moin--main--1.5--patch-109
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 15 Oct 2005 22:05:41 +0000
parents 5b6c796583c3
children bb88373a7f96
files MoinMoin/macro/MonthCalendar.py docs/CHANGES
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/MonthCalendar.py	Sat Oct 15 21:14:32 2005 +0000
+++ b/MoinMoin/macro/MonthCalendar.py	Sat Oct 15 22:05:41 2005 +0000
@@ -466,7 +466,9 @@
                     titletext = []
                     for match in header1_re.finditer(daycontent):
                         if match:
-                            titletext.append(match.group(1))
+                            title = match.group(1)
+                            title = wikiutil.escape(title).replace("'","\\'")
+                            titletext.append(title)
                     tipname = link
                     tiptitle = link
                     tiptext = '<br>'.join(titletext)
--- a/docs/CHANGES	Sat Oct 15 21:14:32 2005 +0000
+++ b/docs/CHANGES	Sat Oct 15 22:05:41 2005 +0000
@@ -243,6 +243,7 @@
       using our own urllib wrapper that handles encoding/decoding to/from
       unicode, see wikiutil.py. Also made a similar fix for making and parsing
       query strings.
+    * Fixed MonthCalendar tooltips when containing special chars like quotes.
     
 Version 1.4: