]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
just key on '%' for in-place xlats
authorAlan T. DeKok <aland@freeradius.org>
Fri, 29 Sep 2023 15:11:47 +0000 (11:11 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 29 Sep 2023 15:11:47 +0000 (11:11 -0400)
no module name will start with '%', so that's fine

src/lib/unlang/compile.c

index 4b0082e0b6f322ab71d52aca3d12cfc00ad5be65..b2a31b03dfede1e57f6877df72d7b64fd608b9f1 100644 (file)
@@ -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;