]> git.mjollnir.org Git - moodle.git/commitdiff
Merged fix for MDL-6819
authorvyshane <vyshane>
Thu, 5 Oct 2006 07:22:48 +0000 (07:22 +0000)
committervyshane <vyshane>
Thu, 5 Oct 2006 07:22:48 +0000 (07:22 +0000)
calendar/lib.php

index f4be9d64129369dfc2967be08bf2efec5d662855..018e2aca5938df8c663901c0c5af16b449fc69f7 100644 (file)
@@ -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;
 }