[4.0.x] xlat function names can no longer contain dots ?
Chaigneau, Nicolas
nicolas.chaigneau at capgemini.com
Mon Apr 6 18:48:38 CEST 2020
It works again. :)
Thanks Alan!
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.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
More information about the Freeradius-Devel
mailing list