mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
extra cleaning of variables; merged from MOODLE_16_STABLE
This commit is contained in:
parent
b6725eba9a
commit
57f2e16c8d
@ -9,6 +9,10 @@
|
||||
$filterselect = '';
|
||||
}
|
||||
|
||||
//make sure everything is cleaned properly
|
||||
$filtertype = clean_param($filtertype, PARAM_ALPHA);
|
||||
$filterselect = clean_param($filterselect, PARAM_INT);
|
||||
|
||||
if (empty($currenttab) or empty($user) or empty($course)) {
|
||||
//error('You cannot call this script in that way');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user