Fix xss vulnerability
This commit is contained in:
parent
1665a06fdd
commit
676a9a7e28
1 changed files with 1 additions and 1 deletions
|
@ -88,5 +88,5 @@
|
|||
%h4.nothing_here_message No wiki pages
|
||||
:javascript
|
||||
$(function() {
|
||||
$(".search_results .term").highlight("#{params[:search]}");
|
||||
$(".search_results .term").highlight("#{escape_javascript(params[:search])}");
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue