mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-04 21:39:52 +08:00
update xss whitelist
This commit is contained in:
parent
84d396f6c4
commit
05078a7857
@ -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;
|
||||
}
|
||||
|
@ -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"],
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user