GIT Log for 2008-08-21 23:33 GMT

aland aland at deployingradius.com
Fri Aug 22 01:33:02 CEST 2008


commit 7e5943a3f8758e8c992b4bb6cd68f0c2dc497685
Author: Alan T. DeKok <aland at freeradius.org>
Date:   Thu Aug 21 09:55:57 2008 +0200

    Don't double-escape strings in pairread()
    
    If 'value' is a double-quoted string, then gettoken() already
    escaped \n -> 0x0a.  Calling pairmake() with value does the
    escaping again, which is wrong.  Try this with:
    
    DEFAULT
    	Filter-Id := "foo\nbar\\n"
    
    gettoken() converts the first \n to 0x0a, and the \\ to \.
    pairmake() then converts the last \n to 0x0a, leaving 2 0x0a's
    in the string, rather than on 0x0a, and another \n.
    
    I've also added handlers in pairread() for single quoted strings,
    which didn't previously exist.

Files changed:
 src/lib/valuepair.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

======================================================================
commit 635de23748e3ed512838cc5a62999852f6d5c586
Author: Alan T. DeKok <aland at freeradius.org>
Date:   Thu Aug 21 08:33:35 2008 +0200

    Removed comments about NAS-Identifier.  They're wrong

Files changed:
 raddb/sites-available/dynamic-clients |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

======================================================================



More information about the Freeradius-Devel mailing list