diff options
author | Thomas Boerger <thomas@webhippie.de> | 2016-04-26 06:07:49 +0200 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-04-26 00:07:49 -0400 |
commit | dfad51fe9ece4f84662be9e47fd19c59439050f5 (patch) | |
tree | b2345dd52202149cdcb6839260ed8d1047f9e75b /routers | |
parent | 7049cb9d975505a6f1fa3fad809dd92c1078360f (diff) | |
download | gitea-dfad51fe9ece4f84662be9e47fd19c59439050f5.tar.gz gitea-dfad51fe9ece4f84662be9e47fd19c59439050f5.zip |
Made the issue stats query more secure with parameterized placeholders (#2895)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 7c6db13ade..4f75532b3d 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -146,7 +146,7 @@ func Issues(ctx *context.Context) { issueStats := models.GetIssueStats(&models.IssueStatsOptions{ RepoID: repo.ID, UserID: uid, - LabelID: com.StrTo(selectLabels).MustInt64(), + Labels: selectLabels, MilestoneID: milestoneID, AssigneeID: assigneeID, FilterMode: filterMode, |