From: Arran Cudbard-Bell Date: Tue, 14 Nov 2017 22:51:24 +0000 (+0000) Subject: More xlat inline tests X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d8219751f396c4bdf1b84a669e71147eae609cb;p=thirdparty%2Ffreeradius-server.git More xlat inline tests --- diff --git a/src/tests/keywords/xlat-inline b/src/tests/keywords/xlat-inline index 5724cf33382..e16a18fbb01 100644 --- a/src/tests/keywords/xlat-inline +++ b/src/tests/keywords/xlat-inline @@ -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