summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2023-01-24 11:06:31 +0100
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-01-24 15:33:06 +0000
commit24b29cea3a262602b2ce8d6179039d8218b38816 (patch)
treecf80f883234e015e3edb7c2f2de6c6aab0659c23
parent9354ec21abf612e27dee6c8304a9b4ab47d79bbc (diff)
fix: mime case matching
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-rw-r--r--src/models/contact.js2
1 files changed, 1 insertions, 1 deletions
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)