summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-09-17 19:24:23 +0100
committerGitHub <noreply@github.com>2020-09-17 19:24:23 +0100
commit9c439a7c999eed4cc336932bb2d621de26370dfd (patch)
tree7e8b656de3b576d253ef69d77f6e4b0396c9d785 /routers/repo
parenta9decf0dacb56e57024ef7c5a0ade7fdcc56407e (diff)
downloadgitea-9c439a7c999eed4cc336932bb2d621de26370dfd.tar.gz
gitea-9c439a7c999eed4cc336932bb2d621de26370dfd.zip
Support slashes in release tags (#12864)
Fix #12861 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/release.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go
index c93c8f5d61..8cd46e850d 100644
--- a/routers/repo/release.go
+++ b/routers/repo/release.go
@@ -132,7 +132,7 @@ func SingleRelease(ctx *context.Context) {
writeAccess := ctx.Repo.CanWrite(models.UnitTypeReleases)
ctx.Data["CanCreateRelease"] = writeAccess && !ctx.Repo.Repository.IsArchived
- release, err := models.GetRelease(ctx.Repo.Repository.ID, ctx.Params("tag"))
+ release, err := models.GetRelease(ctx.Repo.Repository.ID, ctx.Params("*"))
if err != nil {
if models.IsErrReleaseNotExist(err) {
ctx.NotFound("GetRelease", err)