From a13bfe4cca0ed77f9bde16611d1ed12b6e9a1d03 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 22 Nov 2009 21:02:12 +0000 Subject: [PATCH] MDL-20931 fixed input validation --- course/import/groups/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/import/groups/index.php b/course/import/groups/index.php index cd79671cb05..93eed4ab4e3 100755 --- a/course/import/groups/index.php +++ b/course/import/groups/index.php @@ -75,7 +75,7 @@ echo $OUTPUT->header(); require_once($CFG->dirroot.'/lib/uploadlib.php'); $um = new upload_manager('userfile',false,false,null,false,0); -if ($um->preprocess_files()) { +if ($um->preprocess_files() and confirm_sesskey()) { $filename = $um->files['userfile']['tmp_name']; //Fix mac/dos newlines