summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorThibault Meyer <0xbaadf00d@users.noreply.github.com>2016-08-11 22:45:42 +0200
committer无闻 <u@gogs.io>2016-08-11 13:45:42 -0700
commit53c573ed02bb2541a9af5bdd603f45e2db6d6ae4 (patch)
tree191c0b90855560f8ad6c5b240ae775bd791b3d86 /routers
parent10b47eddd20f418e596a0f56e927ca65b35f8426 (diff)
downloadgitea-53c573ed02bb2541a9af5bdd603f45e2db6d6ae4.tar.gz
gitea-53c573ed02bb2541a9af5bdd603f45e2db6d6ae4.zip
Fix #3314: Cannot edit release with tag name contains slash (#3434)
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/release.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go
index efbe6c982f..a00bd944cb 100644
--- a/routers/repo/release.go
+++ b/routers/repo/release.go
@@ -224,7 +224,7 @@ func EditRelease(ctx *context.Context) {
ctx.Data["PageIsReleaseList"] = true
ctx.Data["PageIsEditRelease"] = true
- tagName := ctx.Params(":tagname")
+ tagName := ctx.Params("*")
rel, err := models.GetRelease(ctx.Repo.Repository.ID, tagName)
if err != nil {
if models.IsErrReleaseNotExist(err) {
@@ -249,7 +249,7 @@ func EditReleasePost(ctx *context.Context, form auth.EditReleaseForm) {
ctx.Data["PageIsReleaseList"] = true
ctx.Data["PageIsEditRelease"] = true
- tagName := ctx.Params(":tagname")
+ tagName := ctx.Params("*")
rel, err := models.GetRelease(ctx.Repo.Repository.ID, tagName)
if err != nil {
if models.IsErrReleaseNotExist(err) {