From 3090e13be799e6f149ccf606ec57b272f3699d9b Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Tue, 30 Nov 2021 18:16:09 +0800 Subject: [PATCH] verify tpl tags modify --- src/webapi/router/router_task_tpl.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webapi/router/router_task_tpl.go b/src/webapi/router/router_task_tpl.go index 5a48afdc..0569789f 100644 --- a/src/webapi/router/router_task_tpl.go +++ b/src/webapi/router/router_task_tpl.go @@ -173,6 +173,7 @@ func (f *tplTagsForm) Verify() { func taskTplBindTags(c *gin.Context) { var f tplTagsForm ginx.BindJSON(c, &f) + f.Verify() username := c.MustGet("username").(string) @@ -193,6 +194,7 @@ func taskTplBindTags(c *gin.Context) { func taskTplUnbindTags(c *gin.Context) { var f tplTagsForm ginx.BindJSON(c, &f) + f.Verify() username := c.MustGet("username").(string)