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 226ec1f commit 5247509
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 @@ -78,6 +78,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 5247509

Please sign in to comment.