diff options
author | Valentin Popov <info@valentineus.link> | 2018-01-04 14:29:17 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-01-04 14:34:51 +0300 |
commit | 283c64f62ed1df30fa3031761c6198a8c1daec2a (patch) | |
tree | 92f5be1228d09d04448d46af48893feb14ecb06c /restorebackup.php | |
parent | 17ae01ab717e7f93605ad05cefb603817b42b7ec (diff) | |
download | local_webhooks-283c64f62ed1df30fa3031761c6198a8c1daec2a.tar.xz local_webhooks-283c64f62ed1df30fa3031761c6198a8c1daec2a.zip |
Check the sesskey on the recovery page
Diffstat (limited to 'restorebackup.php')
-rw-r--r-- | restorebackup.php | 2 |
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); } |