From: vyshane Date: Thu, 5 Oct 2006 07:22:48 +0000 (+0000) Subject: Merged fix for MDL-6819 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d8947f95dcebc40bf7cd3b11cf92a35011e24fe8;p=moodle.git Merged fix for MDL-6819 --- diff --git a/calendar/lib.php b/calendar/lib.php index f4be9d6412..018e2aca59 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -338,6 +338,7 @@ function calendar_get_popup($is_today, $event_timestart, $popupcontent='') { $popupcaption .= get_string('eventsfor', 'calendar', userdate($event_timestart, get_string('strftimedayshort'))); } $popupcontent = str_replace("'", "\'", htmlspecialchars($popupcontent)); + $popupcaption = str_replace("'", "\'", htmlspecialchars($popupcaption)); $popup = 'onmouseover="return overlib(\''.$popupcontent.'\', CAPTION, \''.$popupcaption.'\');" onmouseout="return nd();"'; return $popup; }