Permalink
Browse files

Fix for MDL-6819. Patch submitted by Nicolas Martignoni

  • Loading branch information...
vyshane
vyshane committed Oct 5, 2006
1 parent 49ebbad commit 0a60ef6e456b0a8911c575aa85255b9b624ce8cc
Showing with 1 addition and 0 deletions.
  1. +1 −0 calendar/lib.php
View
@@ -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;
}

0 comments on commit 0a60ef6

Please sign in to comment.