Skip to content

Commit

Permalink
Merge pull request #10343 from nextcloud/fix/favicon-ico-mime-type
Browse files Browse the repository at this point in the history
fix: accept avatars with image/vnd.microsoft.icon mime types
  • Loading branch information
SebastianKrupinski authored Nov 12, 2024
2 parents 12fad2d + d6cf286 commit b45989a
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 b45989a

Please sign in to comment.