summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-12-23 22:35:04 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2020-12-24 00:16:30 +0000
commit942f0be6c2cd3ec8c39ca234a449561d9d3c1075 (patch)
tree84bba75d64ea1dc5f86f6c36bc62ab75c3c58fe9 /test
parent94ecf089d68ac5b85c2a99177a8e4b4d35d5aa2e (diff)
Fix ${listextract } from a tainted list
Diffstat (limited to 'test')
-rw-r--r--test/scripts/0000-Basic/00024
-rw-r--r--test/stdout/00022
2 files changed, 6 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002
index 70b4e5f94..5101be453 100644
--- a/test/scripts/0000-Basic/0002
+++ b/test/scripts/0000-Basic/0002
@@ -1107,3 +1107,7 @@ exim -be
${if inlist{aa}{aa} {in list}{not in list}}
${if !inlist{aa}{aa} {not in list}{in list}}
****
+# listextract from tainted list
+exim -be -oMs my.target.host.name
+'\${listextract {2} {<. $sender_host_name}}' => '${listextract {2} {<. $sender_host_name}}'
+****
diff --git a/test/stdout/0002 b/test/stdout/0002
index 02ba087ba..b55571cc6 100644
--- a/test/stdout/0002
+++ b/test/stdout/0002
@@ -1034,3 +1034,5 @@ xyz
> in list
> in list
>
+> '${listextract {2} {<. my.target.host.name}}' => 'target'
+>