From: Alan T. DeKok Date: Wed, 15 Dec 2021 14:38:34 +0000 (-0500) Subject: parse "&=" as an operator for sections X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aca5619fea4cd4aa047d4c5ede24e10303300ec1;p=thirdparty%2Ffreeradius-server.git parse "&=" as an operator for sections --- 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) {