Skip to content

Commit a84b871

Browse files
committed
Skip HTML attributes that wrongfully have an array-value
1 parent 8cdda42 commit a84b871

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Util/Block/ImageRenderer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ private function parseSvgAttributes(
177177
);
178178

179179
foreach ($attributes as $attributeName => $attributeValue) {
180+
if (is_array($attributeValue)) {
181+
continue;
182+
}
183+
180184
$existingAttribute = array_keys(iterator_to_array($svgElement->attributes()));
181185
if (in_array($attributeName, $existingAttribute)) {
182186
$svgElement->attributes()->$attributeName = $attributeValue;

0 commit comments

Comments
 (0)