summaryrefslogtreecommitdiff
path: root/roundcubemail/tests/mailfunc.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-10 08:18:54 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-10 08:18:54 +0000
commit0426c50f8254bb4bfff6ef49ddc2a4a05264608b (patch)
tree0306f506a8866a3f6a507e7a78cc20b793316252 /roundcubemail/tests/mailfunc.php
parent51b47415144677d3ccda4d1a28e2e40a5776fc27 (diff)
- Fix problem with parsing HTML message body with non-unicode characters (#1487813)
git-svn-id: https://svn.roundcube.net/trunk@5407 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/tests/mailfunc.php')
-rw-r--r--roundcubemail/tests/mailfunc.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/roundcubemail/tests/mailfunc.php b/roundcubemail/tests/mailfunc.php
index 9d70befeb..c6081a266 100644
--- a/roundcubemail/tests/mailfunc.php
+++ b/roundcubemail/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()