diff options
Diffstat (limited to 'routers/web/repo/topic.go')
-rw-r--r-- | routers/web/repo/topic.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/topic.go b/routers/web/repo/topic.go index 2a2a04c111..41e3f995b6 100644 --- a/routers/web/repo/topic.go +++ b/routers/web/repo/topic.go @@ -23,7 +23,7 @@ func TopicsPost(ctx *context.Context) { } var topics = make([]string, 0) - var topicsStr = strings.TrimSpace(ctx.FormString("topics")) + var topicsStr = ctx.FormTrim("topics") if len(topicsStr) > 0 { topics = strings.Split(topicsStr, ",") } |