提交 b55f22af 编写于 作者: D Dmitriy Zaporozhets

Correctly escape search query

上级 959863b9
......@@ -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?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册