Browse Source

[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
personal/stbuehler/cleanup-build
Glenn Strauss 4 years ago
parent
commit
7bd46d1984
  1. 2
      src/configfile.c

2
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;

Loading…
Cancel
Save