diff options
author | Unknwon <u@gogs.io> | 2016-12-22 19:44:59 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-12-22 19:44:59 -0500 |
commit | 6383bf748072279a101bf5ecdc0c56a0338f3046 (patch) | |
tree | 4bb317e928071246a4a9c596d9198af66d47f992 | |
parent | f471ef1bc7b583533c4adcbab010547c98662b5c (diff) |
Fix reported vulnerability
Ability to use labels from arbitrary repositories.
Reported by Miguel Ángel Jimeno.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | routers/repo/issue.go | 2 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -3,7 +3,7 @@ Gogs - Go Git Service [ -##### Current tip version: 0.9.109 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions ~~or submit a task on [alpha stage automated binary building system](https://build.gogs.io/)~~) +##### Current tip version: 0.9.110 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions ~~or submit a task on [alpha stage automated binary building system](https://build.gogs.io/)~~) | Web | UI | Preview | |:-------------:|:-------:|:-------:| @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.9.109.1222" +const APP_VER = "0.9.110.1222" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index cb508052..aa95c736 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -721,7 +721,7 @@ func UpdateIssueLabel(ctx *context.Context) { } } else { isAttach := ctx.Query("action") == "attach" - label, err := models.GetLabelByID(ctx.QueryInt64("id")) + label, err := models.GetLabelInRepoByID(ctx.Repo.Repository.ID, ctx.QueryInt64("id")) if err != nil { if models.IsErrLabelNotExist(err) { ctx.Error(404, "GetLabelByID") diff --git a/templates/.VERSION b/templates/.VERSION index e3fbc1e9..89e58b46 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.109.1222
\ No newline at end of file +0.9.110.1222
\ No newline at end of file |