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 8ccaa29 commit 590e3ef0ee72ef245e4c79b5ccc9ed173bd17f59 @abgreeve abgreeve committed Nov 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/data/preset.php
View
@@ -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');
}

0 comments on commit 590e3ef

Please sign in to comment.