From 61dfa9b2aa3f272c703931cff89a64aa9380943a Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 4 Dec 2020 09:38:01 +1100 Subject: [PATCH] Update url encoding in actions to handle deprecation --- lib/custom_wizard/action.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/custom_wizard/action.rb b/lib/custom_wizard/action.rb index b99466ae..bb569a7e 100644 --- a/lib/custom_wizard/action.rb +++ b/lib/custom_wizard/action.rb @@ -282,7 +282,7 @@ class CustomWizard::Action url += "&tags=#{tags.join(',')}" end - route_to = Discourse.base_uri + URI.encode(url) + route_to = Discourse.base_uri + UrlHelper.encode(url) data['route_to'] = route_to log_info("route: #{route_to}") @@ -354,7 +354,7 @@ class CustomWizard::Action url += "&#{action['code']}=#{data[action['code']]}" end - route_to = URI.encode(url) + route_to = UrlHelper.encode(url) data['route_to'] = route_to log_info("route: #{route_to}")