Skip to content

Commit

Permalink
Redirect legacy parameters using #to_unsafe_h because we're dealing w…
Browse files Browse the repository at this point in the history
…ith raw parameters
  • Loading branch information
cbeer committed Jul 11, 2022
1 parent 4e21443 commit 5fd02c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def self.before(controller)
end

if legacy_converted
controller.send(:redirect_to, params, :status => :moved_permanently)
controller.send(:redirect_to, params.to_unsafe_h, :status => :moved_permanently)
end
end
end
end
end

0 comments on commit 5fd02c2

Please sign in to comment.