validate that item images start with https
This commit is contained in:
@@ -176,6 +176,11 @@ def handle_multimedia(item, row, index, logger, lookup)
|
||||
|
||||
parts.each do |part|
|
||||
mmd = MultiMediaDescription.new
|
||||
|
||||
if part != "" and not part.start_with? "https://"
|
||||
raise "Invalid url for the image: #{part}"
|
||||
end
|
||||
|
||||
mmd.url = part
|
||||
item.multi_media_descriptions << mmd
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user