mirror of
https://github.com/sdsykes/fastimage.git
synced 2025-09-20 00:01:59 -04:00
* Replace URI.escape with ::URI::DEFAULT_PARSER.escape
Similar code change https://github.com/mongodb/mongo-ruby-driver/pull/1614/files
This commit is contained in:
parent
099c5e4233
commit
172b674a40
@ -282,7 +282,7 @@ class FastImage
|
||||
begin
|
||||
URI(location)
|
||||
rescue URI::InvalidURIError
|
||||
URI.escape(location)
|
||||
::URI::DEFAULT_PARSER.escape(location)
|
||||
else
|
||||
location
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user