From 9cfbda64bf07a4626ef8b62716308a63578c0ed6 Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Fri, 2 Nov 2018 14:21:41 -0700 Subject: [PATCH] fixes #3967 --- app/logical/sources/strategies/deviant_art.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/sources/strategies/deviant_art.rb b/app/logical/sources/strategies/deviant_art.rb index 041cc363f..374575944 100644 --- a/app/logical/sources/strategies/deviant_art.rb +++ b/app/logical/sources/strategies/deviant_art.rb @@ -165,7 +165,7 @@ module Sources # href may be missing the `http://` bit (ex: `inprnt.com`, `//inprnt.com`). Add it if missing. uri = Addressable::URI.heuristic_parse(element["href"]) rescue nil - if uri.present? + if uri.present? && uri.path.present? uri.scheme ||= "http" element["href"] = uri.to_s end