Skip to content

Commit

Permalink
Merge pull request #1392 from linuxserver/bugfix/allow_ico_images
Browse files Browse the repository at this point in the history
Allow ico images
  • Loading branch information
KodeStar authored Nov 5, 2024
2 parents f820c0b + be59ac7 commit b90b38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b90b38e

Please sign in to comment.