Skip to content

Commit

Permalink
fix: accept avatars with image/vnd.microsoft.icon mime types
Browse files Browse the repository at this point in the history
The mime type image/x-icon is not registered with the IANA. Instead,
image/vnd.microsoft.icon is the preferred mime type for .ico files.

Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny authored and backportbot[bot] committed Nov 12, 2024
1 parent 7bc30ef commit 0359799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Service/AvatarService.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ private function hasAllowedMime(Avatar $avatar): bool {
'image/jpeg',
'image/png',
'image/x-icon',
'image/vnd.microsoft.icon',
]);
} else {
// We trust internal URLs by default
Expand Down

0 comments on commit 0359799

Please sign in to comment.