diff --git a/backup/backup.php b/backup/backup.php index 994dc4402b5..60f8fee71b7 100644 --- a/backup/backup.php +++ b/backup/backup.php @@ -115,7 +115,7 @@ raise_memory_limit("192M"); //Call the form, depending the step we are - if (!$launch) { + if (!$launch or !data_submitted() or !confirm_sesskey()) { // if we're at the start, clear the cache of prefs if (isset($SESSION->backupprefs[$course->id])) { unset($SESSION->backupprefs[$course->id]); diff --git a/backup/backup_check.html b/backup/backup_check.html index c3be745ba26..6a5619413bc 100644 --- a/backup/backup_check.html +++ b/backup/backup_check.html @@ -43,6 +43,7 @@