From f3ebb786e451da973560f1c9d8cdb151d25108b5 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 25 Jul 2019 12:06:07 +0100 Subject: Track tainted data and refuse to expand it --- test/confs/0284 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/confs/0284') diff --git a/test/confs/0284 b/test/confs/0284 index d38f38390..0103742f4 100644 --- a/test/confs/0284 +++ b/test/confs/0284 @@ -16,7 +16,9 @@ begin routers all: driver = accept address_data = ${if match{$local_part}{^(.)}{$1}} - transport = ${if match{$local_part}{^.*-(.*)\$}{$1}fail} + transport = ${if eq {${substr_-1_1:$local_part}}{1} {t1} \ + {${if eq {${substr_-1_1:$local_part}}{2} {t2} \ + {${if eq {${substr_-1_1:$local_part}}{3} {t3} {t4}}}}}} # ----- Transports ----- -- cgit v1.2.3