mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-20931 fixed input validation
This commit is contained in:
parent
886e63dda9
commit
a13bfe4cca
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user