Concatenating/inserting strings with backslashes
Brian Julin
BJulin at clarku.edu
Fri Nov 9 19:04:13 CET 2012
> Brian Candler wrote
>
> > try:
> >
> > if (%{reply:Reply-Message} =~ /(.*)/) {
> > update reply {
> > Reply-Message = "stuff %{1}"
> > }
> > }
>
> Nice idea, but it appears to suffer the same expansion problem.
>
> As you have written it gives this error:
>
> Bare %{...} is invalid in condition at: %{reply:Reply-Message} =~ /(.*)/)
>
> Adding the double quotes:
Oh right.
I usually do this with e.g. User-Name without having to specify the attribute list
explicitly; I forget whether syntax works to do that with a raw variable.
I know outer.VarName works raw, so maybe just reply:Reply-Message
without the braces or quotes?
More information about the Freeradius-Users
mailing list