Skip to content

Commit

Permalink
fix: mime case matching
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny authored and backportbot-nextcloud[bot] committed Jan 24, 2023
1 parent adbbc23 commit ba34334
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 ba34334

Please sign in to comment.