lib/loofah/html5/scrub.rb in loofah-2.1.0 vs lib/loofah/html5/scrub.rb in loofah-2.1.1

- old
+ new

@@ -42,10 +42,10 @@ attr_node.remove next elsif val_unescaped.split(WhiteList::PROTOCOL_SEPARATOR)[0] == 'data' # permit only allowed data mediatypes mediatype = val_unescaped.split(WhiteList::PROTOCOL_SEPARATOR)[1] - mediatype, base64 = mediatype.split(';')[0..1] if mediatype + mediatype, _ = mediatype.split(';')[0..1] if mediatype if mediatype && !WhiteList::ALLOWED_URI_DATA_MEDIATYPES.include?(mediatype) attr_node.remove next end end