]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: url32 does not take the path part into account in the returned hash.
authorJerome Magnin <jmagnin@haproxy.com>
Mon, 26 Aug 2019 09:44:21 +0000 (11:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Aug 2019 11:28:13 +0000 (13:28 +0200)
commit2dd26ca9ff8e642611b8b012d6aee45ea45196bc
tree20d53ff55055585dbaa9a84c5ad8452e27782355
parent6ee9f8df3bfbb811526cff3313da5758b1277bc6
BUG/MEDIUM: url32 does not take the path part into account in the returned hash.

The url32 sample fetch does not take the path part of the URL into
account. This is because in smp_fetch_url32() we erroneously modify
path.len and path.ptr before testing their value and building the
path based part of the hash.

This fixes issue #235

This must be backported as far as 1.9, when HTX was introduced.
src/http_fetch.c