From a1eb47211d00ff182c08ff603265164b3c75a9f9 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Tue, 12 Dec 2017 12:26:06 +0800 Subject: [PATCH] MDL-60235 core_calendar: clean event name field --- calendar/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/lib.php b/calendar/lib.php index 02b33a86faaa7..31f1e7cd4344c 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -411,7 +411,7 @@ function calendar_get_mini($courses, $groups, $users, $calmonth = false, $calyea $name = format_string($event->name, true); } } - $popupcontent .= html_writer::link($dayhref, $name); + $popupcontent .= html_writer::link($dayhref, clean_text($name)); $popupcontent .= html_writer::end_tag('div'); }