Description

If a date page used by MonthCalendar contains a quote ('), then the tip is not shown. An error is shown in the javascript console in Firefox, warning of this. This is because the maketip function gets called something like:

maketip('Events/2005-10-14','Events/2005-10-14','Foo's Event');

...and the quoting gets confused due to the extra single quote.

Steps to reproduce

  1. Add a new event to the calendar, and add some title text that contains a quote, eg.
    • = Foo's party =
  2. Return to page with calendar on it, and see how no tooltip gets generated.

Example

On: http://moinmoin.wikiwikiweb.de/MonthCalendar the event on 30/10/2005 does not have a tooltip, because there is a quote in the even text: http://moinmoin.wikiwikiweb.de/MonthCalendar/2005-10-30

Details

This Wiki.

Workaround

Avoid using quotes (') in calendar events.

Discussion

This seems related to this problem, and implies that other characters probably need escaping: http://moinmoin.wikiwikiweb.de/MoinMoinBugs/UrlQuotingBroken

Simple patch I am using is here:

  • [get | view] (2005-10-10 12:46:07, 1.1 KB) [[attachment:Simple quote escaping patch]]
 All files | Selected Files: delete move to page copy to page

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/MonthCalendarTooltipsNeedEscaping (last edited 2007-10-29 19:21:03 by localhost)