summaryrefslogtreecommitdiff
path: root/classes/service_form.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-11-02 01:03:17 +0300
committerValentin Popov <info@valentineus.link>2018-11-02 01:03:17 +0300
commit849d7126d8674faac056b941038f5fd59811e34f (patch)
tree3c14a0e5d67d733d58a1fda23ae77ab6c2b15234 /classes/service_form.php
parentd8f3a9f3edf66fad0af84a703e39e45911f37d85 (diff)
downloadlocal_webhooks-849d7126d8674faac056b941038f5fd59811e34f.tar.xz
local_webhooks-849d7126d8674faac056b941038f5fd59811e34f.zip
Correction of work with event names
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'classes/service_form.php')
-rw-r--r--classes/service_form.php4
1 files changed, 3 insertions, 1 deletions
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 */