From: skodak Date: Tue, 23 May 2006 09:47:48 +0000 (+0000) Subject: make sure variables are properly cleaned; merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d33f282a5ba0168b41936b616e207a9f38f61d5a;p=moodle.git make sure variables are properly cleaned; merged from MOODLE_16_STABLE --- diff --git a/mod/glossary/tabs.html b/mod/glossary/tabs.html index 66292b2800..928976139e 100644 --- a/mod/glossary/tabs.html +++ b/mod/glossary/tabs.html @@ -5,6 +5,10 @@ if (!isset($sortkey)) { $sortkey = ''; } + + //make sure variables are properly cleaned + $sortkey = clean_param($sortkey, PARAM_ALPHA);// Sorted view: CREATION | UPDATE | FIRSTNAME | LASTNAME... + $sortorder = clean_param($sortorder, PARAM_ALPHA); // it defines the order of the sorting (ASC or DESC) echo '
';