[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 2017-05-12 01:05:20 -04:00
parent 86bb8be2c8
commit b641850376
1 changed files with 1 additions and 0 deletions

View File

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