From 5fd02c22fda6a2a88cfc1f85765e7312405d0b42 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Mon, 11 Jul 2022 16:49:32 -0700 Subject: [PATCH] Redirect legacy parameters using #to_unsafe_h because we're dealing with raw parameters --- .../redirect_legacy_params_filter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blacklight_advanced_search/redirect_legacy_params_filter.rb b/lib/blacklight_advanced_search/redirect_legacy_params_filter.rb index dbb8ba9..153aa27 100644 --- a/lib/blacklight_advanced_search/redirect_legacy_params_filter.rb +++ b/lib/blacklight_advanced_search/redirect_legacy_params_filter.rb @@ -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