From aca5619fea4cd4aa047d4c5ede24e10303300ec1 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Wed, 15 Dec 2021 09:38:34 -0500 Subject: [PATCH] parse "&=" as an operator for sections --- src/lib/server/cf_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/server/cf_file.c b/src/lib/server/cf_file.c index 10f6af2b00..7335f79555 100644 --- a/src/lib/server/cf_file.c +++ b/src/lib/server/cf_file.c @@ -1796,7 +1796,7 @@ static int parse_input(cf_stack_t *stack) * Which seems bad. But the old parser allowed * it, so oh well. */ - if ((*ptr == '"') || (*ptr == '`') || (*ptr == '\'') || (*ptr == '&') || + if ((*ptr == '"') || (*ptr == '`') || (*ptr == '\'') || ((*ptr == '&') && (ptr[1] != '=')) || ((*((uint8_t const *) ptr) & 0x80) != 0) || isalpha((int) *ptr)) { if (cf_get_token(parent, &ptr, &name2_token, buff[2], stack->bufsize, frame->filename, frame->lineno) < 0) { -- 2.47.2