Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit eb1f147000d38902752a1971f72948ea0f0b5658 1 parent 476626d
@danpoltawski danpoltawski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  calendar/export_execute.php
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.