Commit 8a5bf011ab4af5ce98ee91fd5bbcc5d8cc874e0e

Authored by Dmitriy Zaporozhets
Committed by Jacob Vosmaer
1 parent 6c067380

Shell escape code search

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/contexts/search_context.rb
@@ -6,7 +6,7 @@ class SearchContext @@ -6,7 +6,7 @@ class SearchContext
6 end 6 end
7 7
8 def execute 8 def execute
9 - query = params[:search] 9 + query = Shellwords.shellescape(params[:search])
10 10
11 return result unless query.present? 11 return result unless query.present?
12 12