]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
note that you don't always have to use %concat()
authorAlan T. DeKok <aland@freeradius.org>
Thu, 5 Oct 2023 19:46:20 +0000 (15:46 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 6 Oct 2023 11:26:45 +0000 (07:26 -0400)
"+" is usually better.

doc/antora/modules/reference/pages/xlat/builtin.adoc

index fce3e64bec758ec456ed9a94015604b774e4b6cf..acdb42d7f18a367f6fb6718df2a7b1a1db206ad8 100644 (file)
@@ -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> <delim>)
 
 Split an string into multiple new strings based on a delimiter.