aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2024-09-05 12:53:30 +0200
committerGitHub <noreply@github.com>2024-09-05 18:53:30 +0800
commit19af5344623ba999f418520fad1a3bde77980561 (patch)
tree2febabbfe55271833b1f8ba9b95e20ec78bac115 /routers/web
parent5c05dddbed8247a4fb272619f1eb7cf090443b8b (diff)
downloadgitea-19af5344623ba999f418520fad1a3bde77980561.tar.gz
gitea-19af5344623ba999f418520fad1a3bde77980561.zip
For consistency make repo search sort options case sensitive (#31951)
Diffstat (limited to 'routers/web')
-rw-r--r--routers/web/explore/repo.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/web/explore/repo.go b/routers/web/explore/repo.go
index ab487dff5f..62090e5bf4 100644
--- a/routers/web/explore/repo.go
+++ b/routers/web/explore/repo.go
@@ -6,7 +6,6 @@ package explore
import (
"fmt"
"net/http"
- "strings"
"code.gitea.io/gitea/models/db"
repo_model "code.gitea.io/gitea/models/repo"
@@ -58,7 +57,7 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
orderBy db.SearchOrderBy
)
- sortOrder := strings.ToLower(ctx.FormString("sort"))
+ sortOrder := ctx.FormString("sort")
if sortOrder == "" {
sortOrder = setting.UI.ExploreDefaultSort
}