Optional parameter fixes

This commit is contained in:
moodler
2005-12-05 04:19:31 +00:00
parent 3abf63d47b
commit 322bcbe3d4
+4 -6
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_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;
}