diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2023-01-24 11:06:31 +0100 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-01-24 15:33:20 +0000 |
commit | ba343345b0ebe89b37f2ef6ff21cb82e1f66b54c (patch) | |
tree | 2d4dc55bdc52c367ee4fd6bdf964115f863132f2 | |
parent | adbbc235b54e8cf7061207c9d7dddebc0b719fab (diff) |
fix: mime case matching
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-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 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) |