mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
2739def842
commit
3c6b784ffd
1 changed files with 5 additions and 0 deletions
|
|
@ -65,6 +65,11 @@ func statAsset(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if !util.IsAbsPathInWorkspace(p) {
|
||||
ret.Code = 1
|
||||
return
|
||||
}
|
||||
|
||||
info, err := os.Stat(p)
|
||||
if err != nil {
|
||||
ret.Code = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue