]> git.kaiwu.me - haproxy.git/commit
CLEANUP: pattern: don't even run string-based matches on empty strings
authorWilly Tarreau <w@1wt.eu>
Sat, 21 Nov 2026 08:04:40 +0000 (09:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 21 Nov 2026 08:04:40 +0000 (09:04 +0100)
commitad89b10742fd3df23ca50981aa5d7e47d06f2835
tree9039a15d9585869686f5254d1d4f7485f6b0dbef
parent4b348d2a4d528d98b5bb6d925d26e569a4b9509e
CLEANUP: pattern: don't even run string-based matches on empty strings

None of our matching patterns supports matching an empty string, so let's
just not even try to call them for empty strings. This may even speed up
suboptimal configs that unconditionally search for certain things in empty
fields.
src/pattern.c