diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index f7190448eb..6e7317f34c 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -574,8 +574,8 @@ class calendar_uiviews extends calendar_ui '" data-tooltip ="'.$tooltip . '" style="position: absolute; left: '.$left.'%; width: '.$width.'%; height: '. $row_height.'%; top: '.($n * $row_height).'%;'. - 'background-color: '.$color.';" '.$data['popup'].' '. - '>'."\n".$data['html'].$indent.'" data-tooltip ="'.$tooltip ."\n"; + 'background-color: '.$color.';" '.'" data-date ="'.$this->bo->date2string($event['start']).' '. + '>'."\n".$data['html'].$indent."\n"; } } } @@ -2737,9 +2737,10 @@ class calendar_uiviews extends calendar_ui $width = $this->_planner_pos($event['end'],$start,$end) - $left; $color = $data['color'] ? $data['color'] : 'gray'; + $tooltip = html::htmlspecialchars(str_replace(array("\n","\r","'",'"'),array('','',"\\'",'"'),$data['tooltip'])); return $indent.'