FIX: Escape URL before attempting to resolve it.

This commit is contained in:
Guo Xiang Tan
2017-07-18 10:04:24 +09:00
parent 089a1bd3be
commit b534778f46
2 changed files with 9 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ class FinalDestination
def initialize(url, opts=nil)
@uri =
begin
URI(url) if url
URI(URI.escape(url)) if url
rescue URI::InvalidURIError
end