From 172b674a40a1f6e2789e4157a397bc0500475bdc Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Thu, 18 Jun 2020 15:46:13 +0800 Subject: [PATCH] * Replace URI.escape with ::URI::DEFAULT_PARSER.escape Similar code change https://github.com/mongodb/mongo-ruby-driver/pull/1614/files --- lib/fastimage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fastimage.rb b/lib/fastimage.rb index 96c7222..a1c9782 100644 --- a/lib/fastimage.rb +++ b/lib/fastimage.rb @@ -282,7 +282,7 @@ class FastImage begin URI(location) rescue URI::InvalidURIError - URI.escape(location) + ::URI::DEFAULT_PARSER.escape(location) else location end