1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05:00

For consistency make repo search sort options case sensitive (#31951)

(cherry picked from commit 19af5344623ba999f418520fad1a3bde77980561)
This commit is contained in:
6543 2024-09-05 12:53:30 +02:00 committed by Gergely Nagy
parent 4098098f00
commit 3c8eb46765
No known key found for this signature in database

View file

@ -6,7 +6,6 @@ package explore
import ( import (
"fmt" "fmt"
"net/http" "net/http"
"strings"
"code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "code.gitea.io/gitea/models/repo"
@ -58,7 +57,7 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
orderBy db.SearchOrderBy orderBy db.SearchOrderBy
) )
sortOrder := strings.ToLower(ctx.FormString("sort")) sortOrder := ctx.FormString("sort")
if sortOrder == "" { if sortOrder == "" {
sortOrder = setting.UI.ExploreDefaultSort sortOrder = setting.UI.ExploreDefaultSort
} }