Error for mismatched brackets

Brian Candler B.Candler at pobox.com
Tue May 24 17:43:29 CEST 2011


We recently got caught with someone writing

++++? if ("%{request:Assigned-IP-Address)" !~ /./)

instead of

++++? if ("%{request:Assigned-IP-Address}" !~ /./)

I stared at it for ages but couldn't see the problem, until I put the server
into debug mode and picked through it with a fine-toothed comb.

Could I suggest these sort of syntactic bugs be bumped up to an ERROR rather
than DEBUG, similar to commit 0dbd06ce ?

Regards,

Brian.



More information about the Freeradius-Devel mailing list