Replaced optional_variable() instances with secure alternatives.

This commit is contained in:
thepurpleblob 2005-06-10 19:19:08 +00:00
parent c89312d2a2
commit ad644234b1

View File

@ -16,9 +16,9 @@
require_once('config.php');
optional_variable($file, '');
optional_variable($text, 'No text to display');
optional_variable($module, 'moodle');
$file = optional_param('file', '',PARAM_FILE);
$text = optional_param('text', 'No text to display',PARAM_CLEAN);
$module = optional_param('module', 'moodle',PARAM_ALPHA);
print_header();