From 0bfb90a61d388c9078be15c8e07c3cdcf10293fa Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 7 Jun 2023 12:51:22 +0200 Subject: [PATCH] wait #6002 @0.25 --- src/Graphics/Image.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Graphics/Image.php b/src/Graphics/Image.php index baba4a7..09c7053 100644 --- a/src/Graphics/Image.php +++ b/src/Graphics/Image.php @@ -119,6 +119,9 @@ class Image if (file_exists($fixed) && filemtime($fixed) >= filemtime($source)) { return $fixed; } + if(file_exists($fixed) && is_link($fixed)){ + unlink($fixed); + } $svg = simplexml_load_string(file_get_contents($source)); if (!$svg) { copy($source, $fixed); -- 2.39.5