Closed
Description
Description
When trying to filter commits on a repo where the commit message have the type of commit enclosed in square brackets, e.g. "[build] Update libraries to next mayor version", the search doesn't behave as expected.
The different cases I tried were:
- When you search for a tag enclosed in square brackets, e.g. "[build]", it shows a bunch of results that doesn't match the search.
- when you search for a tag but missing the starting square bracket, e.g. "build]", the search gives the correct results.
- when you search for a tag enclosed in square brackets and escape the opening bracket, e.g. "\[build]", the search gives the correct results.
- when you search only for an opening square bracket, e.g. "[", it shows an error page.
- when you search only for an opening square bracket and escape it, e.g. "\[", it shows all the commits that have an opening square bracket which is the correct result.
Gitea Version
1.21.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
When you search for "[" shows this error page
Git Version
2.40.1, Wire Protocol Version 2 Enabled
Operating System
Debian GNU/Linux 11
How are you running Gitea?
gitea/gitea:1.21.0 Docker image
Database
None