Skip to content

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

:art: Escape issue

Daniel07b28ddb486d
diff --git a/kernel/model/file.go b/kernel/model/file.go
index d8531a06cc..786eb3c0a8 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -1058,7 +1058,8 @@ func GetHPathsByPaths(paths []string) (hPaths []string, err error) {
continue
}
- hPaths = append(hPaths, box.Name+bt.HPath)
+ hpath := html.UnescapeString(bt.HPath)
+ hPaths = append(hPaths, util.EscapeHTML(box.Name)+hpath)
}
return
}