diff options
-rw-r--r-- | test/aux-fixed/0990/example.com | 1 | ||||
-rw-r--r-- | test/confs/0990 | 2 | ||||
-rw-r--r-- | test/scripts/0990-Allow-Tainted-Data/0990 | 7 | ||||
-rw-r--r-- | test/scripts/0990-Allow-Tainted-Data/REQUIRES | 1 | ||||
-rw-r--r-- | test/stderr/0990 | 3 | ||||
-rw-r--r-- | test/stdout/0990 | 4 |
6 files changed, 18 insertions, 0 deletions
diff --git a/test/aux-fixed/0990/example.com b/test/aux-fixed/0990/example.com new file mode 100644 index 000000000..b5860744c --- /dev/null +++ b/test/aux-fixed/0990/example.com @@ -0,0 +1 @@ +hans diff --git a/test/confs/0990 b/test/confs/0990 new file mode 100644 index 000000000..076a39914 --- /dev/null +++ b/test/confs/0990 @@ -0,0 +1,2 @@ +# this is the default +allow_insecure_tainted_data = ALLOW_TAINTED diff --git a/test/scripts/0990-Allow-Tainted-Data/0990 b/test/scripts/0990-Allow-Tainted-Data/0990 new file mode 100644 index 000000000..87cf4c009 --- /dev/null +++ b/test/scripts/0990-Allow-Tainted-Data/0990 @@ -0,0 +1,7 @@ +# Allow insecure tainted data +exim -DALLOW_TAINTED=no -f hans@example.com -be +${lookup{$sender_address_local_part}lsearch{DIR/aux-fixed/0990/$sender_address_domain}{yes}{no}} +**** +exim -DALLOW_TAINTED=yes -f hans@example.com -be +${lookup{$sender_address_local_part}lsearch{DIR/aux-fixed/0990/$sender_address_domain}{yes}{no}} +**** diff --git a/test/scripts/0990-Allow-Tainted-Data/REQUIRES b/test/scripts/0990-Allow-Tainted-Data/REQUIRES new file mode 100644 index 000000000..5fabbded0 --- /dev/null +++ b/test/scripts/0990-Allow-Tainted-Data/REQUIRES @@ -0,0 +1 @@ +feature _OPT_MAIN_ALLOW_INSECURE_TAINTED_DATA diff --git a/test/stderr/0990 b/test/stderr/0990 new file mode 100644 index 000000000..3feb126f7 --- /dev/null +++ b/test/stderr/0990 @@ -0,0 +1,3 @@ +1999-03-02 09:44:33 Tainted filename for search: 'TESTSUITE/aux-fixed/0990/example.com' +1999-03-02 09:44:33 Warning: Tainted filename for search: 'TESTSUITE/aux-fixed/0990/example.com' +1999-03-02 09:44:33 Warning: Tainted filename 'TESTSUITE/aux-fixed/0990/example.com' diff --git a/test/stdout/0990 b/test/stdout/0990 new file mode 100644 index 000000000..5a4290afd --- /dev/null +++ b/test/stdout/0990 @@ -0,0 +1,4 @@ +> Failed: (null) +> +> yes +> |