From c4d70a032564f610b7215d3d3973943abbc7395f Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 11 Aug 2021 02:31:13 +0200 Subject: Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) Followup from #16562 prepare for #16567 * Rename ctx.Form() to ctx.FormString() * Reimplement FormX func to need less code and cpu cycles * Move code into own file --- routers/web/org/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/web/org/setting.go') diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go index 47a80ec50f..b21b94d64d 100644 --- a/routers/web/org/setting.go +++ b/routers/web/org/setting.go @@ -155,7 +155,7 @@ func SettingsDelete(ctx *context.Context) { org := ctx.Org.Organization if ctx.Req.Method == "POST" { - if org.Name != ctx.Form("org_name") { + if org.Name != ctx.FormString("org_name") { ctx.Data["Err_OrgName"] = true ctx.RenderWithErr(ctx.Tr("form.enterred_invalid_org_name"), tplSettingsDelete, nil) return -- cgit v1.2.3