diff options
Diffstat (limited to 'routers/web/repo/repo.go')
-rw-r--r-- | routers/web/repo/repo.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index d2c1a0c399..98f60c6b59 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.go @@ -291,8 +291,8 @@ func Action(ctx *context.Context) { return } - ctx.Repo.Repository.Description = ctx.Form("desc") - ctx.Repo.Repository.Website = ctx.Form("site") + ctx.Repo.Repository.Description = ctx.FormString("desc") + ctx.Repo.Repository.Website = ctx.FormString("site") err = models.UpdateRepository(ctx.Repo.Repository, false) } @@ -301,7 +301,7 @@ func Action(ctx *context.Context) { return } - ctx.RedirectToFirst(ctx.Form("redirect_to"), ctx.Repo.RepoLink) + ctx.RedirectToFirst(ctx.FormString("redirect_to"), ctx.Repo.RepoLink) } func acceptOrRejectRepoTransfer(ctx *context.Context, accept bool) error { |