mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Replaced optional_variable() instances with secure alternatives.
This commit is contained in:
parent
c89312d2a2
commit
ad644234b1
6
help.php
6
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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user