Skip to content

Commit fdbd984

Browse files
committed
fix: mime case matching
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
1 parent 848c180 commit fdbd984

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/models/contact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export default class Contact {
252252
}
253253

254254
// Verify if SVG is valid
255-
if (photoType.startsWith('svg')) {
255+
if (photoType.toLowerCase().startsWith('svg')) {
256256
const imageSvg = atob(photoB64Data)
257257
const cleanSvg = await sanitizeSVG(imageSvg)
258258

0 commit comments

Comments
 (0)