From: Alan T. DeKok Date: Thu, 5 Oct 2023 19:46:20 +0000 (-0400) Subject: note that you don't always have to use %concat() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de3f6a3cf27b4e4b618547ad184961045ca3bc96;p=thirdparty%2Ffreeradius-server.git note that you don't always have to use %concat() "+" is usually better. --- diff --git a/doc/antora/modules/reference/pages/xlat/builtin.adoc b/doc/antora/modules/reference/pages/xlat/builtin.adoc index fce3e64bec7..acdb42d7f18 100644 --- a/doc/antora/modules/reference/pages/xlat/builtin.adoc +++ b/doc/antora/modules/reference/pages/xlat/builtin.adoc @@ -320,6 +320,9 @@ Used to join two or more attributes, separated by an optional delimiter. .Return: _string_ +In most cases, `%concat(...)` is only useful inside of a dynamically +expanded string. If you need to concatenate strings together in a policy, just use `+`. + .Example [source,unlang] @@ -343,6 +346,17 @@ aaa, bb, c aaa,bb,c ``` +.Using "+" +[source,unlang] +---- +string foo + +&foo += { "a", "c", "c", "d" } # abcd + +&foo += &control.Tmp-String-0[*] +---- + + === %explode(<&ref> ) Split an string into multiple new strings based on a delimiter.