From: Vincent Vanwaelscappel Date: Mon, 23 Oct 2023 13:52:38 +0000 (+0200) Subject: wait #6437 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7355ac57915399ee631d2d33f8f770e0555e468e;p=fluidbook_tools.git wait #6437 @0.25 --- diff --git a/src/SVG/SVGTools.php b/src/SVG/SVGTools.php index f8ee032..6dce379 100644 --- a/src/SVG/SVGTools.php +++ b/src/SVG/SVGTools.php @@ -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);