Skip to content

Commit

Permalink
Merged param fixes from stable, even though they were already here :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Dec 5, 2005
1 parent 27b219f commit fc64d5c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions help.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

require_once('config.php');

$file = optional_param('file', '',PARAM_FILE);
$text = optional_param('text', 'No text to display',PARAM_CLEAN);
$file = optional_param('file', '', PARAM_FILE);
$text = optional_param('text', 'No text to display', PARAM_CLEAN);
$module = optional_param('module', 'moodle', PARAM_ALPHAEXT);

print_header();
Expand Down Expand Up @@ -113,9 +113,7 @@
}
}
} else {
echo '<p>';
echo clean_text($text);
echo '</p>';
echo '<p>'.s($text).'</p>'; // This param was already cleaned
$helpfound = true;
}

Expand Down

0 comments on commit fc64d5c

Please sign in to comment.