mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
fix: trim the whitespaces for the search keyword (#893)
This commit is contained in:
@@ -145,7 +145,7 @@ func Issues(ctx *context.Context) {
|
||||
milestoneID := ctx.QueryInt64("milestone")
|
||||
isShowClosed := ctx.Query("state") == "closed"
|
||||
|
||||
keyword := ctx.Query("q")
|
||||
keyword := strings.Trim(ctx.Query("q"), " ")
|
||||
if bytes.Contains([]byte(keyword), []byte{0x00}) {
|
||||
keyword = ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user