diff options
Diffstat (limited to 'tests/misc/mailprotect_2_cc.phpt')
| -rw-r--r-- | tests/misc/mailprotect_2_cc.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/misc/mailprotect_2_cc.phpt b/tests/misc/mailprotect_2_cc.phpt new file mode 100644 index 0000000..960b271 --- /dev/null +++ b/tests/misc/mailprotect_2_cc.phpt | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | --TEST-- | ||
| 2 | Testing: suhosin.mail.protect=2 and extra headers contain Cc: | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipifnotcli.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.log.sapi=255 | ||
| 7 | suhosin.log.stdout=0 | ||
| 8 | suhosin.log.script=0 | ||
| 9 | suhosin.log.syslog=0 | ||
| 10 | suhosin.mail.protect=2 | ||
| 11 | sendmail_path=/usr/bin/true | ||
| 12 | --FILE-- | ||
| 13 | <?php | ||
| 14 | var_dump(mail("to", "subject", "msg", "Cc: me")); | ||
| 15 | ?> | ||
| 16 | --EXPECTF-- | ||
| 17 | ALERT - mail() - CC: headers aren't allowed in the headers parameter. (attacker 'REMOTE_ADDR not set', file '%s', line 2) | ||
| 18 | bool(false) \ No newline at end of file | ||
