summaryrefslogtreecommitdiff
path: root/tests/Framework/Mime.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-10 09:35:24 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-10 09:35:24 +0200
commitfd0fd3b0a0c82a1a5cce4dc775886154e9bf9e14 (patch)
tree80bd63bba4a25c7f387f0594ee07615dbbc089f9 /tests/Framework/Mime.php
parent621a2e7f1c6ea22c6fa8804f6ef3f3a876acf296 (diff)
Fix handling of invalid email addresses in headers (#1489092)
Diffstat (limited to 'tests/Framework/Mime.php')
-rw-r--r--tests/Framework/Mime.php4
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) {