mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-24 23:35:19 +02:00
fix(project): prevent database mutations on invalid MoveIssues payload (#38600)
Add missing "return" after ServerError Signed-off-by: Sudhanshu Singh <sudhanshuwriterblc@gmail.com>
This commit is contained in:
@@ -742,6 +742,7 @@ func MoveIssues(ctx *context.Context) {
|
||||
form := &movedIssuesForm{}
|
||||
if err = json.NewDecoder(ctx.Req.Body).Decode(&form); err != nil {
|
||||
ctx.ServerError("DecodeMovedIssuesForm", err)
|
||||
return
|
||||
}
|
||||
|
||||
issueIDs := make([]int64, 0, len(form.Issues))
|
||||
|
||||
Reference in New Issue
Block a user