mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 18:58:38 +00:00
fix: trim the whitespaces for the search keyword (#893)
This commit is contained in:
@@ -155,7 +155,7 @@ func Profile(ctx *context.Context) {
|
||||
ctx.Data["SortType"] = "recentupdate"
|
||||
}
|
||||
|
||||
keyword := ctx.Query("q")
|
||||
keyword := strings.Trim(ctx.Query("q"), " ")
|
||||
ctx.Data["Keyword"] = keyword
|
||||
if len(keyword) == 0 {
|
||||
var total int
|
||||
|
Reference in New Issue
Block a user