Changeset 5407 in subversion
- Timestamp:
- Nov 10, 2011 3:18:54 AM (19 months ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 1 added
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/steps/mail/func.inc (modified) (1 diff)
-
tests/mailfunc.php (modified) (1 diff)
-
tests/src/invalidchars.html (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r5406 r5407 2 2 =========================== 3 3 4 - Fix problem with parsing HTML message body with non-unicode characters (#1487813) 4 5 - Add option to define matching method for addressbook search (#1486564, #1487907) 5 6 - Make email recipients separator configurable -
trunk/roundcubemail/program/steps/mail/func.inc
r5388 r5407 639 639 if (!$p['skip_washer_style_callback']) 640 640 $washer->add_callback('style', 'rcmail_washtml_callback'); 641 642 // Remove non-UTF8 characters (#1487813) 643 $html = rc_utf8_clean($html); 641 644 642 645 $html = $washer->wash($html); -
trunk/roundcubemail/tests/mailfunc.php
r4710 r5407 101 101 102 102 /** 103 * Test washtml class on non-unicode characters (#1487813) 104 */ 105 function test_washtml_utf8() 106 { 107 $part = $this->get_html_part('src/invalidchars.html'); 108 $washed = rcmail_print_body($part); 109 110 $this->assertPattern('/<p>ÑОЌвПл<\/p>/', $washed, "Remove non-unicode characters from HTML message body"); 111 } 112 113 /** 103 114 * Test links pattern replacements in plaintext messages 104 115 */
Note: See TracChangeset
for help on using the changeset viewer.
