mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🐛 Kernel crash when copy-pasting from some browsers https://github.com/siyuan-note/siyuan/issues/9203
This commit is contained in:
parent
9f699aaa32
commit
bd4fddce69
1 changed files with 5 additions and 0 deletions
|
|
@ -104,6 +104,11 @@ func html2BlockDOM(c *gin.Context) {
|
||||||
if gulu.OS.IsWindows() {
|
if gulu.OS.IsWindows() {
|
||||||
localPath = strings.TrimPrefix(localPath, "/")
|
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) {
|
if !gulu.File.IsExist(localPath) {
|
||||||
return ast.WalkContinue
|
return ast.WalkContinue
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue