mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +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()
|
void MainConfig::doVersionSpecificOverride()
|
||||||
{
|
{
|
||||||
// In a new version, we may want to change one value by force.
|
// 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: {
|
whiteList: {
|
||||||
input: ["class", "disabled", "type", "checked"],
|
input: ["class", "disabled", "type", "checked"],
|
||||||
mark: ["class"],
|
mark: ["class"],
|
||||||
|
font: ["color", "class"],
|
||||||
|
sub: ["class"],
|
||||||
|
sup: ["class"],
|
||||||
|
details: ["class"],
|
||||||
|
summary: ["class"],
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user