MINOR: uri_normalizer: Add a `dotdot` normalizer to http-request normalize-uri
authorTim Duesterhus <tim@bastelstu.be>
Thu, 15 Apr 2021 19:45:59 +0000 (21:45 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Apr 2021 07:05:57 +0000 (09:05 +0200)
commit9982fc2bbdbc20cd3a5eac7bf3b1a20ba759c7a7
tree79c5e3d52fdc88a2b21a812696f481151812a166
parentd371e99d1c64744b906a5c9970b8a7d35bf08ae8
MINOR: uri_normalizer: Add a `dotdot` normalizer to http-request normalize-uri

This normalizer merges `../` path segments with the predecing segment, removing
both the preceding segment and the `../`.

Empty segments do not receive special treatment. The `merge-slashes` normalizer
should be executed first.

See GitHub Issue #714.
doc/configuration.txt
include/haproxy/action-t.h
include/haproxy/uri_normalizer.h
reg-tests/http-rules/normalize_uri.vtc
src/http_act.c
src/uri_normalizer.c