[4.0.x] xlat function names can no longer contain dots ?

Alan DeKok aland at deployingradius.com
Mon Apr 6 18:36:18 CEST 2020


On Apr 6, 2020, at 12:18 PM, Chaigneau, Nicolas via Freeradius-Devel <freeradius-devel at lists.freeradius.org> wrote:
> 
> I've been using xlat functions with dots in their names, e.g. "my.function".
> It worked fine until recently (well, that was more than a month ago), but not anymore with current master HEAD.
> 
> The code that prevents it from working now is the following (in xlat_tokenize_function):
> 
> https://github.com/FreeRADIUS/freeradius-server/blob/master/src/lib/unlang/xlat_tokenize.c#L290
> 
> 		/*
> 		 *	Special characters, spaces, etc. cannot be
> 		 *	module names.
> 		 */
> 		if (*q < '0') return 0;
> 
> I think this might be unintended.
> Could you look into this ?

  Dots and dashes should be allowed.  I'll push a fix.

  Alan DeKok.




More information about the Freeradius-Devel mailing list