]> git.kaiwu.me - haproxy.git/commit
[BUG] http: fix cookie parser to support spaces and commas in values
authorWilly Tarreau <w@1wt.eu>
Sun, 3 Jan 2010 18:45:54 +0000 (19:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Jan 2010 18:45:54 +0000 (19:45 +0100)
commit305ae859572b81339cc210d9d84b01449fd1d44e
tree05b1f5c711c3f31a93de317a9b4b65858f8c480a
parent6492db5453a3d398f096e9f7d6e84ea3984a1f04
[BUG] http: fix cookie parser to support spaces and commas in values

The cookie parser could be fooled by spaces or commas in cookie names
and values, causing the persistence cookie not to be matched if located
just after such a cookie. Now spaces found in values are considered as
part of the value, and spaces, commas and semi-colons found in values
or names, are skipped till next cookie name.

This fix must be backported to 1.3.
src/proto_http.c