diff --git a/kernel/api/lute.go b/kernel/api/lute.go index 6c8f611ea..f8e774407 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 }