FIX: Should skip the loop if the image src is blank

This commit is contained in:
Vinoth Kannan 2017-11-27 13:41:28 +05:30
parent 64cdb4f7e8
commit 1f3e9a4350
1 changed files with 2 additions and 0 deletions

View File

@ -383,6 +383,8 @@ class CookedPostProcessor
end
oneboxed_images.each do |img|
next if img["src"].blank?
src = img["src"].sub(/^https?:/i, "")
if large_images.include?(src) || broken_images.include?(src)