mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-20931 fixed input validation
This commit is contained in:
parent
886e63dda9
commit
a13bfe4cca
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue