From: Nick Porter Date: Wed, 13 Nov 2024 11:27:58 +0000 (+0000) Subject: Use new foreach syntax X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5400a4ac20940c2bc13c0d5af947b207bc4aeec;p=thirdparty%2Ffreeradius-server.git Use new foreach syntax --- diff --git a/raddb/policy.d/vendor b/raddb/policy.d/vendor index a04d7fcfe9b..c409512c0bf 100644 --- a/raddb/policy.d/vendor +++ b/raddb/policy.d/vendor @@ -5,9 +5,9 @@ # attributes, but it can be done with unlang for specific ones. # broadsoft-decode { - foreach &BroadSoft-Attr-255 { - if ("%{Foreach-Variable-0}" =~ /^([0-9]+)=(.*)$/) { -# &request.Broadsoft-Attr-255 -= "%{Foreach-Variable-0}" + foreach value ( BroadSoft-Attr-255 ) { + if (value =~ /^([0-9]+)=(.*)$/) { +# &request.Broadsoft-Attr-255 -= value "&request.BroadSoft-Attr-%{1}" += "%{2}" } }