]> git.kaiwu.me - nginx.git/commit
Improved $cookie_ evaluation.
authorVadim Zhestikov <v.zhestikov@f5.com>
Fri, 19 Dec 2025 00:45:21 +0000 (16:45 -0800)
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>
Thu, 12 Feb 2026 18:52:20 +0000 (10:52 -0800)
commitbf0508fabfbfa2fa778edbf5b94d5c54a952156d
treec1978a862f43a3acc585263c63a8b106ac3a667e
parentf8e1bc5b9821eba7995905fe46c8ca383b5ea782
Improved $cookie_ evaluation.

In case "Cookie" header is sent by client, multiple cookie pairs were
incorrectly split by a semicolon and comma.

Now they are split by a semicolon only.

For example, next variables will be found for "Cookie: a=b, c=d; e=f":
- $cookie_a: "b, c=d"
- $cookie_e: "f"

Closes #1042 on GitHub.
src/http/modules/ngx_http_userid_filter_module.c
src/http/ngx_http.h
src/http/ngx_http_parse.c
src/http/ngx_http_variables.c