From 29bf5a040c01a278334a445f54c521621f91e801 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 16 Jul 2024 19:14:48 +0200 Subject: [PATCH] wait #7007 @0.5 --- app/Fluidbook/Compiler/Images.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Fluidbook/Compiler/Images.php b/app/Fluidbook/Compiler/Images.php index 0a0c3a6c1..6e657a3bf 100644 --- a/app/Fluidbook/Compiler/Images.php +++ b/app/Fluidbook/Compiler/Images.php @@ -133,6 +133,9 @@ trait Images protected function _makeCover($orig) { $cached = $this->wdir . '/_cover.jpg'; + if (is_link($cached)) { + unlink($cached); + } if (!file_exists($cached) || filemtime($cached) < filemtime($orig)) { $size = Image::getimagesize($orig); -- 2.39.5