From be59ac794e96c75e5456d5aa76f6c1674bee51cf Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Tue, 5 Nov 2024 11:11:34 +0000 Subject: [PATCH] Allow ico images fixes #1357 --- app/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helper.php b/app/Helper.php index d4a6d0b72..5c9ae2333 100644 --- a/app/Helper.php +++ b/app/Helper.php @@ -117,7 +117,7 @@ function className($name) */ function isImage(string $file, string $extension): bool { - $allowedExtensions = ['jpg', 'jpeg', 'png', 'bmp', 'gif', 'svg', 'webp']; + $allowedExtensions = ['jpg', 'jpeg', 'png', 'bmp', 'gif', 'svg', 'webp', 'ico']; if (!in_array($extension, $allowedExtensions)) { return false;