[core] issue config error for invalid ':' (fixes #2980)

x-ref:
  "Embedded vim command line in conf file with no comment (#) hangs server"
  https://redmine.lighttpd.net/issues/2980
personal/stbuehler/ci-build
Glenn Strauss 2019-09-05 21:54:10 -04:00
parent 670b2086f8
commit 06a395a93e
1 changed files with 7 additions and 0 deletions

View File

@ -1130,6 +1130,13 @@ static int config_tokenizer(server *srv, tokenizer_t *t, int *token_id, buffer *
t->offset += 2;
tid = TK_FORCE_ASSIGN;
buffer_copy_string_len(token, CONST_STR_LEN(":="));
} else {
/* ERROR */
log_error_write(srv, __FILE__, __LINE__, "sbsdsds",
"source:", t->source,
"line:", t->line, "pos:", t->line_pos,
"unexpected character ':'");
return -1;
}
break;