From ad644234b1e31a95e788df00980ff895bb24ba42 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Fri, 10 Jun 2005 19:19:08 +0000 Subject: [PATCH] Replaced optional_variable() instances with secure alternatives. --- help.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/help.php b/help.php index 1701b5c03d9..393a8ddf93f 100644 --- a/help.php +++ b/help.php @@ -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();