Software Público Brasileiro
Portal do
Software Público Brasileiro
Cadastre-se
Entrar
×
Project
Files
Commits
Network
Graphs
Issues
3
Merge Requests
0
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
a476bc7bc7bd902e4bc2dbf9d49d3f6cb9e61537
Authored by
Dmitriy Zaporozhets
2013-10-31 11:25:08 +0200
1 parent
1bace9da
Shell escape code search
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/contexts/search_context.rb
Side-by-side Diff
Inline Diff
app/contexts/search_context.rb
Wrap text
Diff comments
View file @
a476bc7
...
...
@@ -6,7 +6,7 @@ class SearchContext
6
6
end
7
7
8
8
def execute
9
- query =
params[:search]
9
+ query =
Shellwords.shellescape(params[:search])
10
10
11
11
return result unless query.present?
12
12
...
...