From 9b7426fb20543f88a9cf826a49d298701b0df329 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 4 Jan 2018 15:35:27 +0400 Subject: Check the sesskey on the editor page --- editservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editservice.php') 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); -- cgit v1.2.3