Skip to content

Commit

Permalink
Fix double url unescape in search
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidka committed Mar 1, 2019
1 parent e96da6d commit 397d9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/devices_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def index

@query = {}
if params.has_key?('query')
@query = ActiveSupport::JSON.decode(URI.unescape(params['query']))
@query = ActiveSupport::JSON.decode(params['query'])
end

if request.format == Mime[:csv]
Expand Down

0 comments on commit 397d9c5

Please sign in to comment.