An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lock: https://github.com/siyuan-note/siyuan/security/advisories/GHSA-9r8w-vhmw-fwv8
Daniel6071ced2af99
diff --git a/kernel/util/path.go b/kernel/util/path.goindex 8711e87aed..c60d1eec1d 100644--- a/kernel/util/path.go+++ b/kernel/util/path.go@@ -380,6 +380,17 @@ func IsSensitivePath(p string) bool {}}+ // Windows 开始启动菜单路径(小写比较)+ startMenuPrefixes := []string{+ strings.ToLower(filepath.Join(os.Getenv("APPDATA"), "Microsoft", "Windows", "Start Menu")),+ strings.ToLower(filepath.Join(os.Getenv("ProgramData"), "Microsoft", "Windows", "Start Menu")),+ }+ for _, sp := range startMenuPrefixes {+ if strings.HasPrefix(pp, sp) {+ return true+ }+ }+homePrefixes := []string{strings.ToLower(filepath.Join(HomeDir, ".ssh")),strings.ToLower(filepath.Join(HomeDir, ".config")),