From: Alan T. DeKok Date: Thu, 15 May 2025 12:24:31 +0000 (-0400) Subject: parse array things only when the quote is array X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9798bb83969191d7a3676df90baee072894fbd59;p=thirdparty%2Ffreeradius-server.git parse array things only when the quote is array --- diff --git a/src/lib/server/tmpl_tokenize.c b/src/lib/server/tmpl_tokenize.c index f6bca85fcf0..a2d8f5da76d 100644 --- a/src/lib/server/tmpl_tokenize.c +++ b/src/lib/server/tmpl_tokenize.c @@ -5672,7 +5672,11 @@ ssize_t tmpl_preparse(char const **out, size_t *outlen, char const *in, size_t i * a few more things inside of a "[...]" * block. */ - if (*p == quote) { + if (*p == '[') { + if (quote != '[') { + return_P("Invalid location for '['"); + } + p++; /*