This commit is contained in:
Daniel
2024-12-11 17:15:54 +08:00
parent 2b5a9f9f1a
commit e70ed57f6e
5 changed files with 28 additions and 1 deletions

View File

@@ -80,6 +80,12 @@ func renderTemplate(c *gin.Context) {
return
}
if !util.IsAbsPathInWorkspace(p) {
ret.Code = -1
ret.Msg = "Path [" + p + "] is not in workspace"
return
}
preview := false
if previewArg := arg["preview"]; nil != previewArg {
preview = previewArg.(bool)