[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/2980personal/stbuehler/ci-build
parent
670b2086f8
commit
06a395a93e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue