]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: add new function http_path_has_forbidden_char()
authorWilly Tarreau <w@1wt.eu>
Tue, 8 Aug 2023 13:24:54 +0000 (15:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Aug 2023 17:10:54 +0000 (19:10 +0200)
commit30f58f4217d585efeac3d85cb1b695ba53b7760b
tree21246d1ca56ce3bcffcb247d7e0d38a2060aabd6
parent197668de975e495f0c0f0e4ff51b96203fa9842d
MINOR: http: add new function http_path_has_forbidden_char()

As its name implies, this function checks if a path component has any
forbidden headers starting at the designated location. The goal is to
seek from the result of a successful ist_find_range() for more precise
chars. Here we're focusing on 0x00-0x1F, 0x20 and 0x23 to make sure
we're not too strict at this point.
include/haproxy/http.h