summaryrefslogtreecommitdiff
path: root/tests/mailfunc.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mailfunc.php')
-rw-r--r--tests/mailfunc.php11
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()