From: stronk7 Date: Sun, 30 Apr 2006 10:07:36 +0000 (+0000) Subject: Too much restrictive optional_param was producing X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f84b602b44728fdd927fe14d1f1fa2de4a7e53a2;p=moodle.git Too much restrictive optional_param was producing some undesired efects with formats. Bug 4858. (http://moodle.org/bugs/bug.php?op=show&bugid=4858) Merged from MOODLE_15_STABLE --- diff --git a/mod/glossary/showentry.php b/mod/glossary/showentry.php index b1987211b7..4d9acafc11 100644 --- a/mod/glossary/showentry.php +++ b/mod/glossary/showentry.php @@ -5,7 +5,7 @@ $concept = optional_param('concept', '', PARAM_CLEAN); $courseid = optional_param('courseid', 0, PARAM_INT); $eid = optional_param('eid', 0, PARAM_INT); // glossary entry id - $displayformat = optional_param('displayformat',-1, PARAM_INT); + $displayformat = optional_param('displayformat',-1, PARAM_SAFEDIR); if ($CFG->forcelogin) { require_login();