diff --git a/backup/backup.php b/backup/backup.php index 3e45cc4cfd0..788616ce2b1 100644 --- a/backup/backup.php +++ b/backup/backup.php @@ -123,7 +123,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 a2ba9d2bb01..c864706ffe2 100644 --- a/backup/backup_check.html +++ b/backup/backup_check.html @@ -50,6 +50,7 @@