aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-08-17 21:13:00 +0800
committerGitHub <noreply@github.com>2023-08-17 21:13:00 +0800
commit1cedf36d301913cb36dbc38ffd987ada9efb4a77 (patch)
treefd94f2849cd3355c458b75d182c7236dbdaf11f0
parent7da85fa0c3d7ddf4907ca74ef81ee532d768df87 (diff)
downloadgitea-1cedf36d301913cb36dbc38ffd987ada9efb4a77.tar.gz
gitea-1cedf36d301913cb36dbc38ffd987ada9efb4a77.zip
Fix "issueReposQueryPattern does not match query" (#26556) (#26564)
Backport #26556 by @wolfogre Fix `https://github.com/go-gitea/gitea/pull/26545#discussion_r1295734340` Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
-rw-r--r--routers/web/user/home.go2
-rw-r--r--templates/user/dashboard/issues.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go
index 1b0f651b07..8cb1b62974 100644
--- a/routers/web/user/home.go
+++ b/routers/web/user/home.go
@@ -695,7 +695,7 @@ func getRepoIDs(reposQuery string) []int64 {
return []int64{}
}
if !issueReposQueryPattern.MatchString(reposQuery) {
- log.Warn("issueReposQueryPattern does not match query")
+ log.Warn("issueReposQueryPattern does not match query: %q", reposQuery)
return []int64{}
}
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl
index 67a02e7ee6..16e87e475e 100644
--- a/templates/user/dashboard/issues.tmpl
+++ b/templates/user/dashboard/issues.tmpl
@@ -74,7 +74,7 @@
<form class="list-header-search ui form ignore-dirty">
<div class="ui small search fluid action input">
<input type="hidden" name="type" value="{{$.ViewType}}">
- <input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}}%2C{{end}}]">
+ <input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}},{{end}}]">
<input type="hidden" name="sort" value="{{$.SortType}}">
<input type="hidden" name="state" value="{{$.State}}">
<input name="q" value="{{$.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}...">