An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:white_check_mark: Give sensitive-path regression an explicit system directory https://github.com/siyuan-note/siyuan/issues/19472
Daniel22a727db0757
diff --git a/kernel/util/path_test.go b/kernel/util/path_test.goindex 5239f19e1f..eb0ce9947e 100644--- a/kernel/util/path_test.go+++ b/kernel/util/path_test.go@@ -172,6 +172,10 @@ func TestIsSensitivePathWorkspaceFilesNotBlocked(t *testing.T) {// TestIsSensitivePathSymlinkWorkspace 验证工作空间父目录为符号链接时的真实路径判定。func TestIsSensitivePathSymlinkWorkspace(t *testing.T) {+ if filepath.Separator == '/' {+ // 该用例需要系统敏感目录作为父目录,确保工作空间前缀相同的相邻目录仍被拦截。+ t.Setenv("TMPDIR", "/var/tmp")+ }realHome, err := filepath.EvalSymlinks(t.TempDir())if err != nil {t.Fatal(err)