From: Vincent Vanwaelscappel Date: Wed, 20 Aug 2025 13:26:40 +0000 (+0200) Subject: wait #7637 @2.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=84e5304250b8d9a17fad7e429d10f3ac01a7a809;p=cubist_util.git wait #7637 @2.5 --- diff --git a/src/Graphics/Image.php b/src/Graphics/Image.php index eb4d6e7..38bbb2d 100644 --- a/src/Graphics/Image.php +++ b/src/Graphics/Image.php @@ -67,7 +67,8 @@ class Image } else if ($ext === 'svg') { $svgcontent = file_get_contents($path); try { - $svg = simplexml_load_string($svgcontent); + $svg = simplexml_load_string($svgcontent, 'SimpleXMLElement', LIBXML_PARSEHUGE); + $attr = $svg->attributes(); if (!isset($attr['width']) || !isset($attr['height'])) { $viewbox = trim($attr['viewBox']);