Permalink
Browse files

MDL-36453 - mod_data: Presets now load in a Windows environment.

Thanks to Michael de Raadt for this patch.
  • Loading branch information...
1 parent 2b3dbc7 commit d12b949a2c2c3eab3f67f7a8d517d1c990eb33d4 @abgreeve abgreeve committed Nov 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/data/preset.php
View
@@ -217,7 +217,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');
}

0 comments on commit d12b949

Please sign in to comment.