Crash in the grep feature
Aiden Woodruff
aiden at aidenw.net
Fri Mar 6 01:06:46 UTC 2026
Adrian,
Here's a shorter example that causes a crash:
https://DEV.NULL/REPOSITORYNAME/log/?q=a**&qt=grep
I think because this is an invalid regular expression.
However, the following is also an invalid regular expression that does
not cause a crash:
https://DEV.NULL/REPOSITORYNAME/log/?q=a?*&qt=grep
On 3/5/26 4:44 PM, Adrian C. wrote:
> Quick attempt at a workaround for haproxy in front of cgit installations:
>
> http-request set-query %[query,regsub(qt=grep,qt=grepz,g)]
This workaround is not ideal: it disables log searching completely.
--
Aiden Woodruff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2792 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20260305/2ab53ae3/attachment.p7s>
More information about the CGit
mailing list