]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use isdigit instead of isnumber
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 Mar 2019 16:20:07 +0000 (00:20 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 Mar 2019 16:20:07 +0000 (00:20 +0800)
src/lib/server/xlat_tokenize.c

index 4061a91485255667fcc637c542ca51f9f47b1f92..f0ec337abd7674bb20d5c005065f1dcdcfdd48a8 100644 (file)
@@ -397,7 +397,7 @@ static ssize_t xlat_tokenize_expansion(TALLOC_CTX *ctx, xlat_exp_t **head,
        /*
         *      Handle regex's %{<num>} specially.
         */
-       if (isnumber(fmt[2])) {
+       if (isdigit(fmt[2])) {
                slen = xlat_tokenize_regex(ctx, head, fmt);
                if (slen != 0) return slen;     /* If slen == 0 means this wasn't a regex */
        }