From 35b7dd7b6af80fb950f808b7468bbb7ce2dfd796 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 27 Feb 2012 10:12:10 +0800 Subject: [PATCH] MDL-29440 calendar: iCal export don't allow html in description export --- calendar/export_execute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/export_execute.php b/calendar/export_execute.php index 7f195becba5..ee0bed88d7a 100644 --- a/calendar/export_execute.php +++ b/calendar/export_execute.php @@ -152,7 +152,7 @@ foreach($events as $event) { $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 -- 2.43.0