]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Xlats can begin with digits (e.g. %3gpp_...)
authorNick Porter <nick@portercomputing.co.uk>
Mon, 18 Dec 2023 11:01:04 +0000 (11:01 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 18 Dec 2023 11:01:04 +0000 (11:01 +0000)
src/lib/unlang/xlat_tokenize.c

index 82731826311badad2c3c04d1ff45ee82db3d8660..231f72ba45ed796fff02ab044f65233e661b88ce 100644 (file)
@@ -998,7 +998,7 @@ static int xlat_tokenize_input(xlat_exp_head_t *head, fr_sbuff_t *in,
                        /*
                         *      % non-alphanumeric, create a value-box for just the "%" character.
                         */
-                       if (!fr_sbuff_is_alpha(in)) {
+                       if (!fr_sbuff_is_alnum(in)) {
                                if (fr_sbuff_next_if_char(in, '%')) { /* nothing */ }
 
                                str = talloc_typed_strdup(node, "%");