From: Alan T. DeKok Date: Mon, 6 Apr 2020 16:36:46 +0000 (-0400) Subject: dots and dashes are allowed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2b8044d2e105642be14588f12ef33d90a1d346d;p=thirdparty%2Ffreeradius-server.git dots and dashes are allowed --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index 199b51f2a21..429badbb481 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -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;