Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Attribute values are not escaped https://github.com/siyuan-note/siyuan/pull/16712 https://github.com/siyuan-note/siyuan/issues/16686

Daniela3548825e3cf
diff --git a/kernel/filesys/tree.go b/kernel/filesys/tree.go
index 6c66cc9844..6e94ddb3f2 100644
--- a/kernel/filesys/tree.go
+++ b/kernel/filesys/tree.go
@@ -294,7 +294,7 @@ func parseJSON2Tree(boxID, p string, jsonData []byte, luteEngine *lute.Lute) (re
needFix = true
}
- if escapeAttributeValues(ret) { // TODO 划于 2026 年 6 月 30 日后删除
+ if escapeAttributeValues(ret) { // TODO 计划于 2026 年 6 月 30 日后删除
// v3.5.1 https://github.com/siyuan-note/siyuan/pull/16657 引入的问题,属性值未转义
// v3.5.2 https://github.com/siyuan-note/siyuan/issues/16686 进行了修复,并加了订正逻辑 https://github.com/siyuan-note/siyuan/pull/16712
needFix = true