diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2023-01-24 11:06:31 +0100 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2023-01-24 16:15:43 +0100 |
commit | fdbd9849d42aa4441f1374dabff75c143c68dfe4 (patch) | |
tree | f80720f821ab11bfa80b93963f54289c15fbea59 /src/models | |
parent | 848c1809c8572cb414e7766b6bd2bdfde1c30664 (diff) |
fix: mime case matching
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/contact.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/contact.js b/src/models/contact.js index 85c7be8c..cc70f3f4 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) |