MDL-20931 fixed input validation

This commit is contained in:
Petr Skoda 2009-11-22 21:02:12 +00:00
parent 886e63dda9
commit a13bfe4cca

View File

@ -75,7 +75,7 @@ echo $OUTPUT->header();
require_once($CFG->dirroot.'/lib/uploadlib.php'); require_once($CFG->dirroot.'/lib/uploadlib.php');
$um = new upload_manager('userfile',false,false,null,false,0); $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']; $filename = $um->files['userfile']['tmp_name'];
//Fix mac/dos newlines //Fix mac/dos newlines