mirror of https://github.com/gogs/gogs.git
Fix reported vulnerability
Ability to use labels from arbitrary repositories. Reported by Miguel Ángel Jimeno.pull/3244/merge
parent
f471ef1bc7
commit
6383bf7480
|
@ -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 |
|
| Web | UI | Preview |
|
||||||
|:-------------:|:-------:|:-------:|
|
|:-------------:|:-------:|:-------:|
|
||||||
|
|
2
gogs.go
2
gogs.go
|
@ -17,7 +17,7 @@ import (
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/gogits/gogs/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.9.109.1222"
|
const APP_VER = "0.9.110.1222"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
|
|
|
@ -721,7 +721,7 @@ func UpdateIssueLabel(ctx *context.Context) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
isAttach := ctx.Query("action") == "attach"
|
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 err != nil {
|
||||||
if models.IsErrLabelNotExist(err) {
|
if models.IsErrLabelNotExist(err) {
|
||||||
ctx.Error(404, "GetLabelByID")
|
ctx.Error(404, "GetLabelByID")
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.9.109.1222
|
0.9.110.1222
|
Loading…
Reference in New Issue