Skip to content

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

:bug: Kernel crash when copy-pasting from some browsers https://github.com/siyuan-note/siyuan/issues/9203

Danielbd4fddce693d
diff --git a/kernel/api/lute.go b/kernel/api/lute.go
index 6c8f611ea6..f8e7744073 100644
--- a/kernel/api/lute.go
+++ b/kernel/api/lute.go
@@ -104,6 +104,11 @@ func html2BlockDOM(c *gin.Context) {
if gulu.OS.IsWindows() {
localPath = strings.TrimPrefix(localPath, "/")
}
+
+ if !filepath.IsAbs(localPath) {
+ // Kernel crash when copy-pasting from some browsers https://github.com/siyuan-note/siyuan/issues/9203
+ return ast.WalkContinue
+ }
if !gulu.File.IsExist(localPath) {
return ast.WalkContinue
}