Skip to content

Commit

Permalink
MDL-76861 blog: Ensure correct escaping applied to search string
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhawkins authored and junpataleta committed Jan 12, 2023
1 parent 230ac29 commit 71564e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ function blog_get_headers($courseid=null, $groupid=null, $userid=null, $tagid=nu
if (!empty($search) && has_capability('moodle/blog:search', $sitecontext)) {
$headers['filters']['search'] = $search;
$blogurl->param('search', $search);
$PAGE->navbar->add(get_string('searchterm', 'blog', $search), $blogurl->out());
$PAGE->navbar->add(get_string('searchterm', 'blog', s($search)), $blogurl->out());
}
}

Expand Down

0 comments on commit 71564e3

Please sign in to comment.