From 849d7126d8674faac056b941038f5fd59811e34f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 2 Nov 2018 02:03:17 +0400 Subject: Correction of work with event names Signed-off-by: Valentin Popov --- classes/service_form.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'classes/service_form.php') diff --git a/classes/service_form.php b/classes/service_form.php index eac7bb7..eef6e5c 100644 --- a/classes/service_form.php +++ b/classes/service_form.php @@ -91,7 +91,9 @@ class service_edit_form extends moodleform { /* Formation of the list of elements */ foreach ($eventlist as $event) { - $events[$event['component']][] =& $mform->createElement('checkbox', $event['eventname'], $event['eventname']); + /* Escaping event names */ + $eventname = base64_encode($event['eventname']); + $events[$event['component']][] =& $mform->createElement('checkbox', $eventname, $event['eventname']); } /* Displays groups of items */ -- cgit v1.2.3