bug in token.c ?

Alan DeKok aland at deployingradius.com
Mon Jul 25 13:53:37 CEST 2011


Oliver Schröder wrote:
> This piece of code removes all backslashes from the input string, which
> gives incorrect results when parsing strings for regular expressions
> with excaped characters.

  *Why*?

  Do you have an example?

> On the other hand, I'm not sure if it breaks anything else. Is there a
> reason to remove backslashes on purpose? Or is this really a bug?

  The function gets a token from a string.  The token can is *parsed*,
which means interpreting backslashes.  They're not "removed", they're
parsed and understood.

  So yes, there's a reason to do this.

  Alan DeKok.



More information about the Freeradius-Devel mailing list