Merged param fixes from stable, even though they were already here :-)

This commit is contained in:
moodler 2005-12-05 04:23:50 +00:00
parent 27b219f16c
commit fc64d5cf2c

View File

@ -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();
@ -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;
}