[core] optional condition in config "else" clause (fixes #1268)

x-ref:
  "condition should be optional in "else" clause in configuration file"
  https://redmine.lighttpd.net/issues/1268
personal/stbuehler/mod-csrf
Glenn Strauss 5 years ago
parent 86bb8be2c8
commit b641850376
  1. 1
      src/configparser.y

@ -456,6 +456,7 @@ condlines(A) ::= condlines(B) eols ELSE cond_else(C). {
dc = (data_config *)array_extract_element_klen(ctx->all_configs, CONST_BUF_LEN(C->key));
force_assert(C == dc);
buffer_copy_buffer(C->key, B->key);
C->comp = B->comp;
/*buffer_copy_buffer(C->comp_key, B->comp_key);*/
/*C->string = buffer_init_buffer(B->string);*/
pos = buffer_string_length(C->key)-buffer_string_length(B->string)-2;

Loading…
Cancel
Save