Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-03-02 22:54:24 +08:00
parent 2739def842
commit 3c6b784ffd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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