Fixing \\\\ escapes \\\\\\\\\\
Alan DeKok
aland at deployingradius.com
Tue Oct 21 21:12:52 CEST 2014
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.
More information about the Freeradius-Users
mailing list