Skip to content

Commit

Permalink
Allow ico images fixes #1357
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hunt committed Nov 5, 2024
1 parent f820c0b commit be59ac7
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 be59ac7

Please sign in to comment.