]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
test for %{string:...}
authorAlan T. DeKok <aland@freeradius.org>
Mon, 30 Nov 2015 16:36:27 +0000 (11:36 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 30 Nov 2015 16:36:27 +0000 (11:36 -0500)
src/tests/keywords/string [new file with mode: 0644]

diff --git a/src/tests/keywords/string b/src/tests/keywords/string
new file mode 100644 (file)
index 0000000..bcf0fcf
--- /dev/null
@@ -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"
+       }
+}