]> _ Git - cubist_util.git/commitdiff
wait #7637 @2.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Aug 2025 13:26:40 +0000 (15:26 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Aug 2025 13:26:40 +0000 (15:26 +0200)
src/Graphics/Image.php

index eb4d6e71a5a6c08e6aa1daad5839c8f233e42863..38bbb2d9448a3282e56906b46543b97f1c946022 100644 (file)
@@ -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']);