Skip to content

Commit f1e35b0

Browse files
committed
Fix warnings raised by URI 1.0.1
Related to: https://www.github.com/ruby/uri/issues/125 ManageIQ/manageiq#23260
1 parent 3fada58 commit f1e35b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/helpers/application_helper/toolbar_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,15 +412,15 @@ def update_url_parms(url_parm)
412412

413413
url_parm_hash = preprocess_url_param(url_parm)
414414
query_string.merge!(url_parm_hash)
415-
URI::DEFAULT_PARSER.unescape("?#{query_string.to_query}")
415+
URI::RFC2396_PARSER.unescape("?#{query_string.to_query}")
416416
end
417417

418418
def preprocess_url_param(url_parm)
419419
parse_questionmark = /^\?/.match(url_parm)
420420
parse_ampersand = /^&/.match(url_parm)
421421
url_parm = parse_questionmark.post_match if parse_questionmark.present?
422422
url_parm = parse_ampersand.post_match if parse_ampersand.present?
423-
encoded_url = URI::DEFAULT_PARSER.escape(url_parm)
423+
encoded_url = URI::RFC2396_PARSER.escape(url_parm)
424424
Rack::Utils.parse_query(URI("?#{encoded_url}").query)
425425
end
426426

0 commit comments

Comments
 (0)