aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-01-04 14:35:27 +0300
committerValentin Popov <info@valentineus.link>2018-01-04 14:35:27 +0300
commit9b7426fb20543f88a9cf826a49d298701b0df329 (patch)
tree281a7f02586f665316c24ba380197267f585115c
parent283c64f62ed1df30fa3031761c6198a8c1daec2a (diff)
downloadlocal_webhooks-9b7426fb20543f88a9cf826a49d298701b0df329.tar.xz
local_webhooks-9b7426fb20543f88a9cf826a49d298701b0df329.zip
Check the sesskey on the editor page
-rw-r--r--editservice.php2
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);