From 24b29cea3a262602b2ce8d6179039d8218b38816 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Tue, 24 Jan 2023 11:06:31 +0100 Subject: [PATCH] fix: mime case matching Signed-off-by: Richard Steinmetz --- src/models/contact.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/contact.js b/src/models/contact.js index 8c8bbdab..8d68f28b 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -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)