lib/link_thumbnailer/scrapers/default/images.rb in link_thumbnailer-2.0.1 vs lib/link_thumbnailer/scrapers/default/images.rb in link_thumbnailer-2.0.2

- old
+ new

@@ -26,20 +26,20 @@ uri end end def validate_url(url) - URI(url) - rescue URI::InvalidURIError + ::URI.parse(url.to_s) + rescue ::URI::InvalidURIError nil end def needs_prefix?(uri) - !uri.is_a?(URI::HTTP) + !uri.is_a?(::URI::HTTP) end def prefix_uri(uri) - URI.join(prefix_url, uri) + ::URI.join(prefix_url, uri) end def prefix_url base_href || website.url end