Concatenating/inserting strings with backslashes

Brian Julin BJulin at clarku.edu
Fri Nov 9 17:16:39 CET 2012


> Brian Candler writes:

> Or is there another way I can concatenate strings, which doesn't involve
> expanding them into another string?

The workaround I've used for this is to feed the value through a regexp
match to get it into %{1}, which does not seem to be subject to unescaping.

try:

if (%{reply:Reply-Message} =~ /(.*)/) {
   update reply {
         Reply-Message = "stuff %{1}"
   }
}


More information about the Freeradius-Users mailing list