better cleaning of $file parameter SC#276; backported from MOODLE_16_STABLE

This commit is contained in:
skodak
2006-07-11 13:24:17 +00:00
parent 121037f18c
commit b60a8c54f3
+1 -5
View File
@@ -16,16 +16,12 @@
require_once('config.php');
$file = optional_param('file', '', PARAM_CLEAN);
$file = optional_param('file', '', PARAM_PATH);
$text = optional_param('text', 'No text to display', PARAM_CLEAN);
$module = optional_param('module', 'moodle', PARAM_ALPHAEXT);
print_header();
if (detect_munged_arguments($module .'/'. $file)) {
error('Filenames contain illegal characters!');
}
print_simple_box_start('center', '96%');
$helpfound = false;