From: Alan T. DeKok Date: Fri, 29 Sep 2023 15:11:47 +0000 (-0400) Subject: just key on '%' for in-place xlats X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92642660cfdf9749e67a288dbaa1705c4cc4ed06;p=thirdparty%2Ffreeradius-server.git just key on '%' for in-place xlats no module name will start with '%', so that's fine --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 4b0082e0b6f..b2a31b03dfe 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -4547,7 +4547,7 @@ static unlang_t *compile_item(unlang_t *parent, unlang_compile_t *unlang_ctx, CO * * This should really be removed from the server. */ - if (((name[0] == '%') && ((name[1] == '{') || (name[1] == '('))) || + if ((name[0] == '%') || (cf_pair_attr_quote(cp) == T_BACK_QUOTED_STRING)) { c = compile_tmpl(parent, unlang_ctx, cp); goto allocate_number;