Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'wip-MDL-36453-MOODLE_23_STABLE' of git://github.com/abg…

…reeve/moodle into MOODLE_23_STABLE
  • Loading branch information...
commit d7aec7342db2bddd3b826bd915bef4964fe12997 2 parents d338726 + f6cdef5
@danpoltawski danpoltawski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/data/preset.php
View
2  mod/data/preset.php
@@ -216,7 +216,7 @@
} else if ($action == 'finishimport') {
$overwritesettings = optional_param('overwritesettings', false, PARAM_BOOL);
if (!$fullname) {
- $presetdir = $CFG->tempdir.'/forms/'.required_param('directory', PARAM_ALPHANUMEXT);
+ $presetdir = $CFG->tempdir.'/forms/'.required_param('directory', PARAM_FILE);
if (!file_exists($presetdir) || !is_dir($presetdir)) {
print_error('cannotimport');
}
Please sign in to comment.
Something went wrong with that request. Please try again.