From c746723278b6fbcdd063091f6022f06ee2f595b8 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Fri, 8 Nov 2024 12:36:21 -0500 Subject: [PATCH] Fix warnings raised by URI 1.0.1 Related to: https://www.github.com/ruby/uri/issues/125 https://github.com/ManageIQ/manageiq/pull/23260 --- lib/VMwareWebService/MiqVimDataStore.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMwareWebService/MiqVimDataStore.rb b/lib/VMwareWebService/MiqVimDataStore.rb index 63e3868..60471bd 100644 --- a/lib/VMwareWebService/MiqVimDataStore.rb +++ b/lib/VMwareWebService/MiqVimDataStore.rb @@ -317,6 +317,6 @@ def encode_datastore_url(file_path, ds_name) end def encode_path_url(path) - URI::DEFAULT_PARSER.escape(path, /[^#{URI::PATTERN::UNRESERVED}]/o) + URI::RFC2396_PARSER.escape(path, /[^#{URI::RFC2396_Parser::PATTERN::UNRESERVED}]/o) end end # module MiqVimDataStore