Skip to content

Commit

Permalink
MDL-52552 course management: insufficient cleaning of search output
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski authored and andrewnicols committed Jan 4, 2016
1 parent aabb46e commit 835ca04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/classes/management_renderer.php
Expand Up @@ -1130,7 +1130,7 @@ protected function search_pagination($totalcourses, $page, $perpage, $showtotals
$totalpages = ceil($totalcourses / $perpage); $totalpages = ceil($totalcourses / $perpage);
if ($showtotals) { if ($showtotals) {
if ($totalpages == 0) { if ($totalpages == 0) {
$str = get_string('nocoursesfound', 'moodle', $search); $str = get_string('nocoursesfound', 'moodle', s($search));
} else if ($totalpages == 1) { } else if ($totalpages == 1) {
$str = get_string('showingacourses', 'moodle', $totalcourses); $str = get_string('showingacourses', 'moodle', $totalcourses);
} else { } else {
Expand Down

0 comments on commit 835ca04

Please sign in to comment.