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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user