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 12:47:36 +0000 (14:47 +0200)
commitcb5ff8cf01212b321b15f24a3f28b68154774955
tree742d80943a4f12dfad3e38e34ed51ae49f2c2343
parent95749cdc2b7a90ba956e546b7c314e3a37dd971e
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>
src/h3.c