aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-01-04 14:29:17 +0300
committerValentin Popov <info@valentineus.link>2018-01-04 14:34:51 +0300
commit283c64f62ed1df30fa3031761c6198a8c1daec2a (patch)
tree92f5be1228d09d04448d46af48893feb14ecb06c
parent17ae01ab717e7f93605ad05cefb603817b42b7ec (diff)
downloadlocal_webhooks-283c64f62ed1df30fa3031761c6198a8c1daec2a.tar.xz
local_webhooks-283c64f62ed1df30fa3031761c6198a8c1daec2a.zip
Check the sesskey on the recovery page
-rw-r--r--restorebackup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/restorebackup.php b/restorebackup.php
index 174a9b2..69f6057 100644
--- a/restorebackup.php
+++ b/restorebackup.php
@@ -40,7 +40,7 @@ $context = context_system::instance();
$mform = new service_backup_form($PAGE->url);
/* Cancel processing */
-if ($mform->is_cancelled()) {
+if (($mform->is_cancelled()) && confirm_sesskey()) {
redirect($managerservice);
}