Skip to content

Commit be59ac7

Browse files
author
Chris Hunt
committed
Allow ico images fixes #1357
1 parent f820c0b commit be59ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Helper.php

Lines changed: 1 addition & 1 deletion
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)