From 8a5bf011ab4af5ce98ee91fd5bbcc5d8cc874e0e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 31 Oct 2013 11:25:08 +0200 Subject: [PATCH] Shell escape code search --- app/contexts/search_context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/contexts/search_context.rb b/app/contexts/search_context.rb index 22cda70..742ab02 100644 --- a/app/contexts/search_context.rb +++ b/app/contexts/search_context.rb @@ -6,7 +6,7 @@ class SearchContext end def execute - query = params[:search] + query = Shellwords.shellescape(params[:search]) return result unless query.present? -- libgit2 0.21.2