Check the sesskey on the recovery page

This commit is contained in:
Valentin Popov 2018-01-04 15:29:17 +04:00
parent 17ae01ab71
commit 283c64f62e

View File

@ -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);
}