From 8f7ca0030e2a4b74077cd3b1feb415a8be7c0abb Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 16 Apr 2008 03:24:28 +0000 Subject: [PATCH] MDL-14317, fix parameter type, see tracker, thanks Stephen, merged from MOODLE_19_STABLE --- mod/data/preset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/data/preset.php b/mod/data/preset.php index 3d66a5a560c..bb25ba7bb9d 100644 --- a/mod/data/preset.php +++ b/mod/data/preset.php @@ -14,7 +14,7 @@ $id = optional_param('id', 0, PARAM_INT); // course module id $d = optional_param('d', 0, PARAM_INT); // database activity id $action = optional_param('action', 'base', PARAM_ALPHANUM); // current action $fullname = optional_param('fullname', '', PARAM_PATH); // directory the preset is in -$file = optional_param('file', '', PARAM_FILE); // uploaded file +$file = optional_param('file', '', PARAM_PATH); // uploaded file // find out preset owner userid and shortname $parts = explode('/', $fullname);