From 4a8192d754ec299d5dd5194d4601f462195c19c8 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Thu, 19 Nov 2009 18:12:20 +0000 Subject: [PATCH] MDL-20901 fixed input validation --- backup/backup.php | 2 +- backup/backup_check.html | 1 + backup/backup_form.html | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) 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 @@
'; if (empty($to)) { //Now print the Backup Name tr diff --git a/backup/backup_form.html b/backup/backup_form.html index 05747d23bca..0ddee8660a5 100644 --- a/backup/backup_form.html +++ b/backup/backup_form.html @@ -120,6 +120,8 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
'; + /// Acummulator for hidden options and proper XHTML output $hidden_options = ''; //Now, check modules and info and show posibilities