From 9b7d5cd41bfc701704d2d951e001c2eeadb8e4a9 Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Tue, 5 Jul 2016 09:50:32 +0100 Subject: [PATCH] MDL-55128 course: Fix param type for shortname --- course/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/view.php b/course/view.php index e15a0226b89..adc22d6306c 100644 --- a/course/view.php +++ b/course/view.php @@ -7,7 +7,7 @@ require_once($CFG->libdir.'/completionlib.php'); $id = optional_param('id', 0, PARAM_INT); - $name = optional_param('name', '', PARAM_RAW); + $name = optional_param('name', '', PARAM_TEXT); $edit = optional_param('edit', -1, PARAM_BOOL); $hide = optional_param('hide', 0, PARAM_INT); $show = optional_param('show', 0, PARAM_INT);