From: Alan T. DeKok Date: Sat, 30 Sep 2023 14:08:16 +0000 (-0400) Subject: parse pairs from a string X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d932e2a9f69a1c9b5dee2a9026beb72352c3a7be;p=thirdparty%2Ffreeradius-server.git parse pairs from a string --- diff --git a/src/tests/keywords/pairs b/src/tests/keywords/pairs index 19a4adbbf69..494621399f8 100644 --- a/src/tests/keywords/pairs +++ b/src/tests/keywords/pairs @@ -46,8 +46,17 @@ if !(&Tmp-String-6 == 'Tmp-Group-0 = { Tmp-String-0 = "This is a string", Tmp-St test_fail } -&request -= &Tmp-Group-0 - +&request -= &Tmp-Group-0[*] +if (&request.Tmp-Group-0.Tmp-String-0) { + test_fail +} +# +# Parse pairs from a string! +# +&request += "%{Tmp-String-6}" +if !(&request.Tmp-Group-0.Tmp-String-0 == 'This is a string') { + test_fail +} success