summaryrefslogtreecommitdiff
path: root/app/views/search/show.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-07 11:32:12 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-07 11:32:12 +0200
commit676a9a7e287655342ac0683dedce0c69a984465e (patch)
tree60b6fd53de1d30c11af43d713a1a1e323ae8ba70 /app/views/search/show.html.haml
parent1665a06fddf7c51fcf80da74590c613f5c785f47 (diff)
downloadgitlab-ce-676a9a7e287655342ac0683dedce0c69a984465e.tar.gz
Fix xss vulnerability
Diffstat (limited to 'app/views/search/show.html.haml')
-rw-r--r--app/views/search/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/search/show.html.haml b/app/views/search/show.html.haml
index 8448193deb9..ddcef442490 100644
--- a/app/views/search/show.html.haml
+++ b/app/views/search/show.html.haml
@@ -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])}");
})