Shell escape code search

This commit is contained in:
Dmitriy Zaporozhets
2013-11-01 14:14:24 +02:00
parent 1bace9da9a
commit a476bc7bc7
+1 -1
View File
@@ -6,7 +6,7 @@ class SearchContext
end
def execute
query = params[:search]
query = Shellwords.shellescape(params[:search])
return result unless query.present?