]> _ Git - fluidbook_tools.git/commitdiff
wait #6437 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 23 Oct 2023 13:52:38 +0000 (15:52 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 23 Oct 2023 13:52:38 +0000 (15:52 +0200)
src/SVG/SVGTools.php

index f8ee0329233cbac76aaf5baa92a0a00bfcb66384..6dce37933bb04d135cc3d05458650820926aec28 100644 (file)
@@ -16,6 +16,10 @@ class SVGTools
 
     public static function optimizeSVG($in, $out = null)
     {
+        if (!str_ends_with(mb_strtolower($in), '.svg')) {
+            return $in;
+        }
+
         if (null === $out) {
             $e = explode('.', $in);
             $ext = array_pop($e);