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 84d396f commit 05078a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/mainconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,4 @@ QString MainConfig::getVersion(const QJsonObject &p_jobj)
void MainConfig::doVersionSpecificOverride()
{
// In a new version, we may want to change one value by force.
m_editorConfig->getMarkdownEditorConfig().m_protectFromXss = true;
}
5 changes: 5 additions & 0 deletions src/data/extra/web/js/markdownit.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ class MarkdownIt extends VxWorker {
whiteList: {
input: ["class", "disabled", "type", "checked"],
mark: ["class"],
font: ["color", "class"],
sub: ["class"],
sup: ["class"],
details: ["class"],
summary: ["class"],
}
});
});
Expand Down

0 comments on commit 05078a7

Please sign in to comment.