= Description = If you put the macro MonthCalender on a page like Rock'n'Roll the maketip (tooltip) are not shown and there is an javascript error reported. == Steps to reproduce == ## Describe the steps needed to reproduce the bug. If we can't reproduce it, we probably can't fix it. 1. create a page with an apostrophe 2. add the macro MonthCalendar 3. add some pages/dates to the calendar 4. try to hover over this "used" date 5. tool-/maketip is not working, due an javascript error == Example == ##Add URL that show the bug, screenshot or test wiki markup that fail... ##URL: ##attachment:screenshot.png ##{{{ ##Example wiki markup that fail ##}}} The problem is this generated JavaScript function call, with not escaped apostrophe: {{{ maketip('Rock'n'Roll/Events/2008-07-01','Rock'n'Roll/Events/2008-07-01','White Lion, Pratteln '); }}} == Component selection == ## Where you think is this bug happening ? (general, plugin [plugin name], theme [theme name], ... * macro MonthCalendar == Details == ## If you got a traceback, please save the traceback page as html and attach here: ## attachment:traceback.html ## if the bug is in this wiki, just kill the table and write: This Wiki. ## If a traceback is not available, please fill in the details here: || '''!MoinMoin Version''' || 1.7.3.0 || || '''OS and Version''' || Linux || || '''Python Version''' || 2.5.4 || || '''Server Setup''' || mod_wsgi || || '''Server Details''' || || || '''Language you are using the wiki in''' (set in the browser/UserPreferences) || DE || == Workaround == ## How to deal with the bug until it is fixed I changed this in the MonthCalendar macro, don't know if it's correct, atleast it works :-) {{{ @@ -365,6 +367,7 @@ title = match.group(1) title = wikiutil.escape(title).replace("'", "\\'") titletext.append(title) + link = wikiutil.escape(link).replace("'", "\\'") tipname = link tiptitle = link tiptext = '
'.join(titletext) }}} = Discussion = = Plan = ## This part is for MoinMoin developers: * Priority: * Assigned to: * Status: fixed by http://hg.moinmo.in/moin/1.7/rev/4f0dcb5fe7a6 ---- ## If you are a moin core developer, replace the category to Category* in these cases: ## Category MoinMoinNoBug - if this is not a bug. ## Category MoinMoinBugConfirmed - if you can confirm the bug on current code. ## Category MoinMoinBugFixed - after the bug is fixed in current code. CategoryMoinMoinBugFixed