Skip to content

Commit

Permalink
mailprotect test cases now work on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bef committed May 21, 2015
1 parent 4a16e56 commit c60c18e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/misc/mailprotect_1_header_nl.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ suhosin.log.stdout=0
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.mail.protect=1
sendmail_path=/usr/bin/true
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
var_dump(mail("to", "subject", "msg", "\r\nFoo: bar"));
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/mailprotect_1_header_nlnl.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ suhosin.log.stdout=0
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.mail.protect=1
sendmail_path=/usr/bin/true
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
var_dump(mail("to", "subject", "msg", "Foo: bar\r\n\r\nfake-msg-start"));
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/mailprotect_1_subject.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ suhosin.log.stdout=0
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.mail.protect=1
sendmail_path=/usr/bin/true
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
var_dump(mail("to", "sub\nject", "msg"));
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/mailprotect_1_subject_long.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ suhosin.log.stdout=0
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.mail.protect=1
sendmail_path=/usr/bin/true
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
var_dump(mail("to", "sub\n ject\r\n\tfoo", "msg"));
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/mailprotect_1_to.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ suhosin.log.stdout=0
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.mail.protect=1
sendmail_path=/usr/bin/true
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
var_dump(mail("t\r\no", "subject", "msg"));
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/mailprotect_1_to_long.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ suhosin.log.stdout=0
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.mail.protect=1
sendmail_path=/usr/bin/true
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
var_dump(mail("to\n long\r\n\tfoo", "subject", "msg"));
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/mailprotect_2_bcc.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ suhosin.log.stdout=0
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.mail.protect=2
sendmail_path=/usr/bin/true
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
var_dump(mail("to", "subject", "msg", "Bcc: me"));
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/mailprotect_2_cc.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ suhosin.log.stdout=0
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.mail.protect=2
sendmail_path=/usr/bin/true
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
var_dump(mail("to", "subject", "msg", "Cc: me"));
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/mailprotect_2_to.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ suhosin.log.stdout=0
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.mail.protect=2
sendmail_path=/usr/bin/true
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
var_dump(mail("to", "subject", "msg", "To: me"));
Expand Down

0 comments on commit c60c18e

Please sign in to comment.