mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
Shell escape code search
This commit is contained in:
@@ -6,7 +6,7 @@ class SearchContext
|
||||
end
|
||||
|
||||
def execute
|
||||
query = params[:search]
|
||||
query = Shellwords.shellescape(params[:search])
|
||||
|
||||
return result unless query.present?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user