Commit 676a9a7e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix xss vulnerability

parent 1665a06f
......@@ -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])}");
})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment