Skip to content

Commit

Permalink
fix(xss): disallow svgs as avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
phoqe committed Oct 21, 2021
1 parent e8a1dd7 commit daa2475
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions template/src/components/AccountTab/AccountTab.js
Expand Up @@ -667,13 +667,7 @@ class AccountTab extends Component {
return;
}

const fileTypes = [
"image/gif",
"image/jpeg",
"image/png",
"image/webp",
"image/svg+xml",
];
const fileTypes = ["image/gif", "image/jpeg", "image/png", "image/webp"];

if (!fileTypes.includes(avatar.type)) {
return;
Expand Down

0 comments on commit daa2475

Please sign in to comment.