Skip to content

Commit

Permalink
Merge pull request #3201 from nextcloud/backport/3199/stable4.2
Browse files Browse the repository at this point in the history
[stable4.2] fix: mime case matching
  • Loading branch information
st3iny authored Jan 24, 2023
2 parents adbbc23 + ba34334 commit 3708d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default class Contact {
}

// Verify if SVG is valid
if (photoType.startsWith('svg')) {
if (photoType.toLowerCase().startsWith('svg')) {
const imageSvg = atob(photoB64Data)
const cleanSvg = await sanitizeSVG(imageSvg)

Expand Down

0 comments on commit 3708d13

Please sign in to comment.