summaryrefslogtreecommitdiff
path: root/roundcubemail/tests
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-09 09:46:54 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-09 09:46:54 +0000
commit1cafcd459a642c1a69ce233f22ff2858611eff21 (patch)
tree4acedb34abdd85fb23cafff411830ec9e529241b /roundcubemail/tests
parent1ed20aaeed5b43de831c93a1cbf6d1f9fffb25b7 (diff)
- Fix handling of email addresses with quoted local part (#1487939)
git-svn-id: https://svn.roundcube.net/trunk@5033 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/tests')
-rw-r--r--roundcubemail/tests/maildecode.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/tests/maildecode.php b/roundcubemail/tests/maildecode.php
index 8d359a5b6..ef3d18246 100644
--- a/roundcubemail/tests/maildecode.php
+++ b/roundcubemail/tests/maildecode.php
@@ -44,6 +44,8 @@ class rcube_test_maildecode extends UnitTestCase
16 => 'Test Test ((comment)) <test@domain.tld>',
17 => 'test@domain.tld (comment)',
18 => '"Test,Test" <test@domain.tld>',
+ // 1487939
+ 19 => 'Test <"test test"@domain.tld>',
);
$results = array(
@@ -66,6 +68,7 @@ class rcube_test_maildecode extends UnitTestCase
16 => array(1, 'Test Test', 'test@domain.tld'),
17 => array(1, '', 'test@domain.tld'),
18 => array(1, 'Test,Test', 'test@domain.tld'),
+ 19 => array(1, 'Test', '"test test"@domain.tld'),
);
foreach ($headers as $idx => $header) {
@@ -73,7 +76,7 @@ class rcube_test_maildecode extends UnitTestCase
$this->assertEqual($results[$idx][0], count($res), "Rows number in result for header: " . $header);
$this->assertEqual($results[$idx][1], $res[1]['name'], "Name part decoding for header: " . $header);
- $this->assertEqual($results[$idx][2], $res[1]['mailto'], "Name part decoding for header: " . $header);
+ $this->assertEqual($results[$idx][2], $res[1]['mailto'], "Email part decoding for header: " . $header);
}
}