Merge pull request #1392 from linuxserver/bugfix/allow_ico_images

Allow ico images
This commit is contained in:
KodeStar 2024-11-05 11:23:43 +00:00 committed by GitHub
commit b90b38eae9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;