From: Alan T. DeKok Date: Sat, 18 Jan 2025 23:17:40 +0000 (-0500) Subject: we need '&' here X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08e8992d3ff29e64fbc58e1030b45d17d34c34b5;p=thirdparty%2Ffreeradius-server.git we need '&' here because we have not yet updated the xlat function argument parser to treat bare words as being attribute references --- diff --git a/src/tests/keywords/attr-index-eval b/src/tests/keywords/attr-index-eval index de9df853191..c2ddf4ed20d 100644 --- a/src/tests/keywords/attr-index-eval +++ b/src/tests/keywords/attr-index-eval @@ -8,7 +8,7 @@ index := 1 # # Dynamically create an attribute reference # -ref = "Filter-Id[" + (string) index + "]" +ref = "&Filter-Id[" + (string) index + "]" # # Evaluate the attribute as an unlang expression. diff --git a/src/tests/keywords/foreach-key-ref b/src/tests/keywords/foreach-key-ref index 10c2e4b8dca..09bcee68f35 100644 --- a/src/tests/keywords/foreach-key-ref +++ b/src/tests/keywords/foreach-key-ref @@ -14,7 +14,7 @@ Tmp-String-1 := { "a", "b", "c", "d" } foreach string key, string name (Tmp-String-0[*]) { total += key total += " = '" - total += %eval(%{key}) + total += %eval(%{"&" + %{key}}) total += "', " }