]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More xlat inline tests
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 14 Nov 2017 22:51:24 +0000 (22:51 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 14 Nov 2017 22:51:24 +0000 (22:51 +0000)
src/tests/keywords/xlat-inline

index 5724cf33382b7252530eab77b700b2c973667596..e16a18fbb013421e4c6b7e204355c9c23ef312d7 100644 (file)
@@ -23,4 +23,18 @@ if ("%{debug:%{Tmp-Integer-0}}" != "%{Tmp-Integer-0}") {
        fail
 }
 
+# Check for 'splosions
+"%{%{control:Cleartext-Password}:-%{control:User-Name}}"
+"%{%{control:User-Name}:-%{control:Cleartext-Password}}"
+
+if (&control:Cleartext-Password =~ /(h)(e)(l)(l)(o)/) {
+       "%{0}"
+       "%{1}"
+       "%{2}"
+       "%{3}"
+       "%{4}"
+       "%{5}"
+       "%{6}"
+}
+
 success