Permalink
Browse files

MDL-29440 calendar: iCal export don't allow html in description export

  • Loading branch information...
1 parent 476626d commit eb1f147000d38902752a1971f72948ea0f0b5658 @danpoltawski danpoltawski committed Feb 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 calendar/export_execute.php
@@ -152,7 +152,7 @@
$ev = new iCalendar_event;
$ev->add_property('uid', $event->id.'@'.$hostaddress);
$ev->add_property('summary', $event->name);
- $ev->add_property('description', $event->description);
+ $ev->add_property('description', clean_param($event->description, PARAM_NOTAGS));
$ev->add_property('class', 'PUBLIC'); // PUBLIC / PRIVATE / CONFIDENTIAL
$ev->add_property('last-modified', Bennu::timestamp_to_datetime($event->timemodified));
$ev->add_property('dtstamp', Bennu::timestamp_to_datetime()); // now

0 comments on commit eb1f147

Please sign in to comment.