summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2023-01-24 16:47:12 +0100
committerGitHub <noreply@github.com>2023-01-24 16:47:12 +0100
commiteb77a5dc98f00185ab5585746ddf8603dfe5dba0 (patch)
treecf80f883234e015e3edb7c2f2de6c6aab0659c23
parent9354ec21abf612e27dee6c8304a9b4ab47d79bbc (diff)
parent24b29cea3a262602b2ce8d6179039d8218b38816 (diff)
Merge pull request #3200 from nextcloud/backport/3199/stable5.0
[stable5.0] fix: mime case matching
-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)