diff options
author | Thibault Meyer <0xbaadf00d@users.noreply.github.com> | 2016-08-11 22:45:42 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-08-11 13:45:42 -0700 |
commit | 53c573ed02bb2541a9af5bdd603f45e2db6d6ae4 (patch) | |
tree | 191c0b90855560f8ad6c5b240ae775bd791b3d86 /cmd/web.go | |
parent | 10b47eddd20f418e596a0f56e927ca65b35f8426 (diff) | |
download | gitea-53c573ed02bb2541a9af5bdd603f45e2db6d6ae4.tar.gz gitea-53c573ed02bb2541a9af5bdd603f45e2db6d6ae4.zip |
Fix #3314: Cannot edit release with tag name contains slash (#3434)
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index a0b53981cf..f7ab661d41 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -488,8 +488,8 @@ func runWeb(ctx *cli.Context) error { m.Group("/releases", func() { m.Get("/new", repo.NewRelease) m.Post("/new", bindIgnErr(auth.NewReleaseForm{}), repo.NewReleasePost) - m.Get("/edit/:tagname", repo.EditRelease) - m.Post("/edit/:tagname", bindIgnErr(auth.EditReleaseForm{}), repo.EditReleasePost) + m.Get("/edit/*", repo.EditRelease) + m.Post("/edit/*", bindIgnErr(auth.EditReleaseForm{}), repo.EditReleasePost) m.Post("/delete", repo.DeleteRelease) }, reqRepoWriter, context.RepoRef()) |