while ($fdata = fgetcsv ($fp, 4096, '|')) {
$calendardata[$fdata[0]][$fdata[1]] = array( 'length' => $fdata[2],
'priority' => $fdata[3],
- 'title' => $fdata[4],
- 'message' => $fdata[5],
+ 'title' => htmlentities($fdata[4],ENT_NOQUOTES),
+ 'message' => htmlentities($fdata[5],ENT_NOQUOTES),
'reminder' => $fdata[6] );
}
fclose ($fp);
) .
html_tag( 'tr',
html_tag( 'td', _("Title:"), 'right', $color[4] ) . "\n" .
- html_tag( 'td', $event_title, 'left', $color[4] ) . "\n"
+ html_tag( 'td', htmlentities($event_title,ENT_NOQUOTES), 'left', $color[4] ) . "\n"
) .
html_tag( 'tr',
html_tag( 'td', _("Message:"), 'right', $color[4] ) . "\n" .
- html_tag( 'td', $event_text, 'left', $color[4] ) . "\n"
+ html_tag( 'td', htmlentities($event_text,ENT_NOQUOTES), 'left', $color[4] ) . "\n"
) .
html_tag( 'tr',
html_tag( 'td',