diff options
author | Valentin Popov <info@valentineus.link> | 2018-01-04 14:35:27 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-01-04 14:35:27 +0300 |
commit | 9b7426fb20543f88a9cf826a49d298701b0df329 (patch) | |
tree | 281a7f02586f665316c24ba380197267f585115c | |
parent | 283c64f62ed1df30fa3031761c6198a8c1daec2a (diff) | |
download | local_webhooks-9b7426fb20543f88a9cf826a49d298701b0df329.tar.xz local_webhooks-9b7426fb20543f88a9cf826a49d298701b0df329.zip |
Check the sesskey on the editor page
-rw-r--r-- | editservice.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editservice.php b/editservice.php index 6e46e6f..b7b4d72 100644 --- a/editservice.php +++ b/editservice.php @@ -56,7 +56,7 @@ if ($editing = boolval($serviceid)) { } /* Processing of received data */ -if ($data = $mform->get_data()) { +if (($data = $mform->get_data()) && confirm_sesskey()) { if ($editing) { $data->id = $serviceid; local_webhooks_update_record($data); |