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

Shell escape code search

上级 1bace9da
...@@ -6,7 +6,7 @@ class SearchContext ...@@ -6,7 +6,7 @@ class SearchContext
end end
def execute def execute
query = params[:search] query = Shellwords.shellescape(params[:search])
return result unless query.present? return result unless query.present?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册