Skip to content

Commit

Permalink
Merge pull request #3200 from nextcloud/backport/3199/stable5.0
Browse files Browse the repository at this point in the history
[stable5.0] fix: mime case matching
  • Loading branch information
st3iny authored Jan 24, 2023
2 parents 9354ec2 + 24b29ce commit eb77a5d
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 eb77a5d

Please sign in to comment.