]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
dots and dashes are allowed
authorAlan T. DeKok <aland@freeradius.org>
Mon, 6 Apr 2020 16:36:46 +0000 (12:36 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 6 Apr 2020 16:36:46 +0000 (12:36 -0400)
src/lib/unlang/xlat_tokenize.c

index 199b51f2a21126bfceca926724ae900e749bf4dd..429badbb4814d0ef14e330b9c6aa6a70b9e2cb87 100644 (file)
@@ -287,7 +287,7 @@ static inline ssize_t xlat_tokenize_function(TALLOC_CTX *ctx, xlat_exp_t **head,
                 *      Special characters, spaces, etc. cannot be
                 *      module names.
                 */
-               if (*q < '0') return 0;
+               if ((*q < '0') && (*q != '.') && (*q != '-')) return 0;
        }
 
        if (q >= end) return 0;