diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-05-10 09:35:24 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-05-10 09:37:25 +0200 |
commit | bde85428d69069637782d9507475df78890f08d0 (patch) | |
tree | 134efa1bc2a51ec69b9f0c8778dd2722b477d972 /tests/Framework/Mime.php | |
parent | 71ec1b6063378c684c6db9b2b63475d52e0ac165 (diff) |
Fix handling of invalid email addresses in headers (#1489092)
Conflicts:
CHANGELOG
program/steps/mail/func.inc
Diffstat (limited to 'tests/Framework/Mime.php')
-rw-r--r-- | tests/Framework/Mime.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Framework/Mime.php b/tests/Framework/Mime.php index 3035ba062..d9f4163ec 100644 --- a/tests/Framework/Mime.php +++ b/tests/Framework/Mime.php @@ -39,6 +39,8 @@ class Framework_Mime extends PHPUnit_Framework_TestCase 19 => 'Test <"test test"@domain.tld>', 20 => '<"test test"@domain.tld>', 21 => '"test test"@domain.tld', + // invalid (#1489092) + 22 => '"John Doe @ SomeBusinessName" <MAILER-DAEMON>', ); $results = array( @@ -64,6 +66,8 @@ class Framework_Mime extends PHPUnit_Framework_TestCase 19 => array(1, 'Test', '"test test"@domain.tld'), 20 => array(1, '', '"test test"@domain.tld'), 21 => array(1, '', '"test test"@domain.tld'), + // invalid (#1489092) + 22 => array(1, 'John Doe @ SomeBusinessName', 'MAILER-DAEMON'), ); foreach ($headers as $idx => $header) { |