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:20 +0000
commitba343345b0ebe89b37f2ef6ff21cb82e1f66b54c (patch)
tree2d4dc55bdc52c367ee4fd6bdf964115f863132f2
parentadbbc235b54e8cf7061207c9d7dddebc0b719fab (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 dbf589c7..d884cd39 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)