From 7355ac57915399ee631d2d33f8f770e0555e468e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 23 Oct 2023 15:52:38 +0200 Subject: [PATCH] wait #6437 @0.25 --- src/SVG/SVGTools.php | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5