From 736781f978e3010cf0ae04e1a2f334c2e4f6f0c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A9=20Dupuis?= <1518299+JoeDupuis@users.noreply.github.com> Date: Mon, 19 May 2025 15:00:19 -0700 Subject: [PATCH] Use RFC2396 parser for escaping --- lib/azure_blob/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/azure_blob/client.rb b/lib/azure_blob/client.rb index 61be8bc..3f35c9a 100644 --- a/lib/azure_blob/client.rb +++ b/lib/azure_blob/client.rb @@ -246,7 +246,7 @@ def delete_container(options = {}) # # Example: +generate_uri("#{container}/#{key}")+ def generate_uri(path) - URI.parse(URI::DEFAULT_PARSER.escape(File.join(host, path))) + URI.parse(URI::RFC2396_PARSER.escape(File.join(host, path))) end # Returns an SAS signed URI