]> git.ipfire.org Git - thirdparty/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>
Thu, 28 Jan 2010 22:16:36 +0000 (23:16 +0100)
commitbb6e777da9d7460a03051101309e6185a4e696c0
tree865cd30dc44b6d7d6be88ef460c65917c11eed7a
parent15c24da81e0c2f20e240cf695c33a592c5217b30
[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.
(cherry picked from commit 305ae859572b81339cc210d9d84b01449fd1d44e)
src/proto_http.c