mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-04 21:39:52 +08:00
turn on XSS protection by default
This commit is contained in:
parent
9a971860e0
commit
74e20dcb3e
@ -119,4 +119,5 @@ 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;
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ namespace vnotex
|
||||
bool m_fetchImagesInParseAndPaste = true;
|
||||
|
||||
// Whether protect from Cross-Site Scripting.
|
||||
bool m_protectFromXss = false;
|
||||
bool m_protectFromXss = true;
|
||||
|
||||
// Whether allow HTML tag in Markdown source.
|
||||
bool m_htmlTagEnabled = true;
|
||||
|
@ -462,7 +462,7 @@
|
||||
"//comment" : "Whether fetch images to local in Parse To Markdown And Paste",
|
||||
"fetch_images_in_parse_and_paste" : true,
|
||||
"//comment" : "Whether protect from Cross-Site Scripting attack",
|
||||
"protect_from_xss" : false,
|
||||
"protect_from_xss" : true,
|
||||
"//comment" : "Whether allow HTML tags in source",
|
||||
"html_tag" : true,
|
||||
"//comment" : "Whether auto break a line with '\\n'",
|
||||
|
Loading…
x
Reference in New Issue
Block a user