Вежливый_Лис@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf to Lemmy Support@lemmy.ml · 2 months agoUnable to use .svg image as an avatar.message-squaremessage-square3linkfedilinkarrow-up14arrow-down10file-text
arrow-up14arrow-down1message-squareUnable to use .svg image as an avatar.Вежливый_Лис@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf to Lemmy Support@lemmy.ml · 2 months agomessage-square3linkfedilinkfile-text
The message says: {"data":{"code":"command-failure","msg":"Invalid media file provided"},"state":"success"}
minus-squareBlackEco@lemmy.blackeco.comlinkfedilinkarrow-up4·2 months agoHonestly, it makes sense that Lemmy refuses to use SVG as profile picture, as they can be used for XSS.
minus-squareaary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acflinkfedilinkarrow-up1·edit-22 months agoTheoretically .svg-s are parseable, so it is possible to prevent or remove javascript from them programmatically.
Honestly, it makes sense that Lemmy refuses to use SVG as profile picture, as they can be used for XSS.
Theoretically .svg-s are parseable, so it is possible to prevent or remove javascript from them programmatically.