From 7bd46d198407faa7e04a2b883309da7ef1c7d7a9 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 14 Oct 2017 13:51:49 -0400 Subject: [PATCH] [core] fix $REQUEST_HEADER[...] parsing in config (#1556) x-ref: "Allow matching against any arbitrary HTTP header in the configuration file regexps" https://redmine.lighttpd.net/issues/1556 https://redmine.lighttpd.net/boards/2/topics/7609 --- src/configfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configfile.c b/src/configfile.c index 041c54f8..064039b1 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -1024,7 +1024,7 @@ static int config_tokenizer(server *srv, tokenizer_t *t, int *token_id, buffer * if (t->in_cond) { for (i = 0; t->input[t->offset + i] && (isalpha((unsigned char)t->input[t->offset + i]) - ); i++); + || t->input[t->offset + i] == '_'); ++i); if (i && t->input[t->offset + i]) { tid = TK_SRVVARNAME; -- 2.11.4.GIT