Skip to content
Snippets Groups Projects
Commit 31736e9b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Correctly escape search query

parent a476bc7b
No related branches found
No related tags found
2 merge requests!100176 2 stable,!6886DELETE THIS MERGE REQUEST
This commit is part of merge request !10017. Comments created here will be created in the context of that merge request.
Loading
Loading
@@ -6,7 +6,8 @@ class SearchContext
end
 
def execute
query = Shellwords.shellescape(params[:search])
query = params[:search]
query = Shellwords.shellescape(query) if query.present?
 
return result unless query.present?
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment