Fixing \\\\ escapes \\\\\\\\\\

Russell Mike radius.sir at gmail.com
Wed Oct 22 18:57:16 CEST 2014


Wonderful !

Thanks Alan, we are grateful !


On Tue, Oct 21, 2014 at 7:12 PM, Alan DeKok <aland at deployingradius.com>
wrote:

>   I finally sat down and went through the source to fix \\ the \\\\
> escaping \\\\\\\\ problem. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
>
>   The main issue is backwards compatibility.  The good news is that the
> server continues to work as before, with no changes required to your
> configuration.
>
>   The *better* news is that if you edit radiusd.conf, and set:
>
>         correct_escapes = true
>
>   it will now require only one backslash, instead of many.  e.g.
>
>         if (User-Name =~ /foo\.bar/) {
>                 ...
>         }
>
>   Will match User-Name = "foo.bar", as expected.
>
>   This is a minor change which should get rid of severe annoyance in the
> server.
>
>   If you *don't* set "correct_escapes", you will need to use the old
> method of:
>
>         if (User-Name =~ /foo\\.bar/) {
>                 ...
>         }
>
>   Which is annoying.
>
>   Please test the v3.0.x branch in git.  There *are* regression tests
> for the new behavior, and they've been carefully checked.
>
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20141022/058aa526/attachment.html>


More information about the Freeradius-Users mailing list