Skip to content

Commit

Permalink
update xss whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlok committed Jul 18, 2024
1 parent 05078a7 commit 78de724
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/data/extra/web/js/markdownit.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,15 @@ class MarkdownIt extends VxWorker {
() => {
this.mdit.use(window.markdownItXSS, {
whiteList: {
input: ["class", "disabled", "type", "checked"],
mark: ["class"],
font: ["color", "class"],
sub: ["class"],
sup: ["class"],
details: ["class"],
summary: ["class"],
input: ["style", "class", "disabled", "type", "checked"],
mark: ["style", "class"],
font: ["style", "color", "class"],
sub: ["style", "class"],
sup: ["style", "class"],
details: ["style", "class"],
summary: ["style", "class"],
ins: ["style", "class"],
span: ["style", "class"],
}
});
});
Expand Down

0 comments on commit 78de724

Please sign in to comment.