Skip to content

Commit

Permalink
better cleaning of $file parameter SC#276; merged from MOODLE_16_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 11, 2006
1 parent b2ec109 commit 496d064
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions help.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,13 @@

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);
$forcelang = optional_param('forcelang', '', PARAM_ALPHAEXT);

print_header();

if (detect_munged_arguments($module .'/'. $file)) {
error('Filenames contain illegal characters!');
}

print_simple_box_start('center', '96%');

$helpfound = false;
Expand Down

0 comments on commit 496d064

Please sign in to comment.