BUG/MINOR: h3: reject invalid :path in request
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 16 Apr 2025 09:17:20 +0000 (11:17 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 17 Apr 2025 13:05:19 +0000 (15:05 +0200)
commit80798c75bc6dede791f9b774443fcb71cee5d9cb
tree29326370034b2ad88f5e385bc1e8f88254056a1f
parent8cec970a914f400c8edfc516fdde7a94004dadb8
BUG/MINOR: h3: reject invalid :path in request

RFC 9114 specifies some requirements for :path pseudo-header when using
http or https scheme. This commit enforces this by rejecting a request
if needed. Thus, path cannot be empty, and it must either start with a
'/' character or contains only '*'.

This must be backported up to 2.6.

(cherry picked from commit fc28fe7191701251115e817a7c4a673b88e49f65)
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>
(cherry picked from commit cb5ff8cf01212b321b15f24a3f28b68154774955)
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>
src/h3.c