summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-04-26 06:07:49 +0200
committerUnknwon <u@gogs.io>2016-04-26 06:07:49 +0200
commitdfad51fe9ece4f84662be9e47fd19c59439050f5 (patch)
treeb2345dd52202149cdcb6839260ed8d1047f9e75b /routers
parentAdd new language support (diff)
downloadforgejo-dfad51fe9ece4f84662be9e47fd19c59439050f5.tar.xz
forgejo-dfad51fe9ece4f84662be9e47fd19c59439050f5.zip
Made the issue stats query more secure with parameterized placeholders (#2895)
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue.go2
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,