From: Alan T. DeKok Date: Mon, 30 Nov 2015 16:36:27 +0000 (-0500) Subject: test for %{string:...} X-Git-Tag: release_3_0_11~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ba8fe83ab79fe83f1b59c1f8d1d30dec8de8343;p=thirdparty%2Ffreeradius-server.git test for %{string:...} --- diff --git a/src/tests/keywords/string b/src/tests/keywords/string new file mode 100644 index 00000000000..bcf0fcffc10 --- /dev/null +++ b/src/tests/keywords/string @@ -0,0 +1,19 @@ +# +# PRE: cmp +# +update control { + Cleartext-Password := 'hello' +} + +update request { + Tmp-String-0 := "this\000is\000a\000string" +} + +# +# %{string:...} is explicitly not binary safe +# +if ("%{string:Tmp-String-0}" == "this") { + update reply { + Filter-Id := "filter" + } +}