Skip to content

Commit

Permalink
For consistency make repo search sort options case sensitive (#31951)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Sep 5, 2024
1 parent 5c05ddd commit 19af534
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routers/web/explore/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 19af534

Please sign in to comment.