diff options
author | alecpl <alec@alec.pl> | 2011-11-11 15:04:45 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-11 15:04:45 +0000 |
commit | ecfaed571b2c38f4bcc2b6a0fa39fba15a5126ce (patch) | |
tree | 2a19876b7daee9b036fbab5cc7317402b2dd0f57 /tests | |
parent | c82bf6689f47073342f4c42502f75bcaf17e6130 (diff) |
- Apply fixes fom trunk up to r5414
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mailfunc.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/mailfunc.php b/tests/mailfunc.php index 9d70befeb..6dc60ba04 100644 --- a/tests/mailfunc.php +++ b/tests/mailfunc.php @@ -100,6 +100,17 @@ class rcube_test_mailfunc extends UnitTestCase } /** + * Test washtml class on non-unicode characters (#1487813) + */ + function test_washtml_utf8() + { + $part = $this->get_html_part('src/invalidchars.html'); + $washed = rcmail_print_body($part); + + $this->assertPattern('/<p>ÑОЌвПл<\/p>/', $washed, "Remove non-unicode characters from HTML message body"); + } + + /** * Test links pattern replacements in plaintext messages */ function test_plaintext() |