Skip to content

Commit b90b38e

Browse files
authored
Merge pull request #1392 from linuxserver/bugfix/allow_ico_images
Allow ico images
2 parents f820c0b + be59ac7 commit b90b38e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/Helper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function className($name)
117117
*/
118118
function isImage(string $file, string $extension): bool
119119
{
120-
$allowedExtensions = ['jpg', 'jpeg', 'png', 'bmp', 'gif', 'svg', 'webp'];
120+
$allowedExtensions = ['jpg', 'jpeg', 'png', 'bmp', 'gif', 'svg', 'webp', 'ico'];
121121

122122
if (!in_array($extension, $allowedExtensions)) {
123123
return false;

0 commit comments

Comments
 (0)