diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-03-09 17:18:44 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-03-09 19:51:42 -0500 |
commit | bd67d9f4acfbb4f8bd373006f77102126df8eeba (patch) | |
tree | 51e3a14398cba32a867c4626a8f04ec852dbe00c /src/http_header.c | |
parent | e447de1b66bde910a013f26dad52777f877feed7 (diff) | |
download | lighttpd-git-bd67d9f4acfbb4f8bd373006f77102126df8eeba.tar.gz |
[core] permit env w/ blank value (fix regression)
(thx Lars Bingchong)
empty env var must be set to blank string and not left unset
(regression in lighttpd 1.4.56 - lighttpd 1.4.64)
x-ref:
https://stackoverflow.com/a/52913064/1338888
Diffstat (limited to 'src/http_header.c')
-rw-r--r-- | src/http_header.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/http_header.c b/src/http_header.c index 6cd2a420..d2ae6929 100644 --- a/src/http_header.c +++ b/src/http_header.c @@ -353,7 +353,6 @@ void http_header_env_set(request_st * const r, const char *k, uint32_t klen, con void http_header_env_append(request_st * const r, const char *k, uint32_t klen, const char *v, uint32_t vlen) { /*if (0 == vlen) return;*//* skip check; permit env var w/ blank value */ buffer * const vb = array_get_buf_ptr(&r->env, k, klen); - if (0 == vlen) return; http_header_token_append(vb, v, vlen); } |