mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-22 01:34:18 +00:00
Related refactors to ctx.FormX functions (#16567)
* use FormTrim if posible * speedup goGet * only convert if nessesary
This commit is contained in:
parent
2d25b7d44b
commit
f1a810e090
22 changed files with 36 additions and 52 deletions
|
@ -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, ",")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue