diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2023-01-24 16:47:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 16:47:19 +0100 |
commit | 3708d13a36511cd2023185861f0c98b53599c4ff (patch) | |
tree | 2d4dc55bdc52c367ee4fd6bdf964115f863132f2 | |
parent | adbbc235b54e8cf7061207c9d7dddebc0b719fab (diff) | |
parent | ba343345b0ebe89b37f2ef6ff21cb82e1f66b54c (diff) |
Merge pull request #3201 from nextcloud/backport/3199/stable4.2
[stable4.2] fix: mime case matching
-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) |