Commit d55428b8424f1a6469b2b8e92a03994de79b0fd3

Authored by Dmitriy Zaporozhets
1 parent a1ded954

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 6 end
7 7  
8 8 def execute
9   - query = params[:search]
  9 + query = Shellwords.shellescape(params[:search])
10 10  
11 11 return result unless query.present?
12 12  
... ...