MDL-52552 course management: insufficient cleaning of search output

This commit is contained in:
Dan Poltawski 2015-12-18 11:34:13 +00:00 committed by Andrew Nicols
parent aabb46e9ac
commit 835ca0419b

View File

@ -1130,7 +1130,7 @@ class core_course_management_renderer extends plugin_renderer_base {
$totalpages = ceil($totalcourses / $perpage);
if ($showtotals) {
if ($totalpages == 0) {
$str = get_string('nocoursesfound', 'moodle', $search);
$str = get_string('nocoursesfound', 'moodle', s($search));
} else if ($totalpages == 1) {
$str = get_string('showingacourses', 'moodle', $totalcourses);
} else {