Changeset 5407 in subversion


Ignore:
Timestamp:
Nov 10, 2011 3:18:54 AM (19 months ago)
Author:
alec
Message:
  • Fix problem with parsing HTML message body with non-unicode characters (#1487813)
Location:
trunk/roundcubemail
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r5406 r5407  
    22=========================== 
    33 
     4- Fix problem with parsing HTML message body with non-unicode characters (#1487813) 
    45- Add option to define matching method for addressbook search (#1486564, #1487907) 
    56- Make email recipients separator configurable 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r5388 r5407  
    639639  if (!$p['skip_washer_style_callback']) 
    640640    $washer->add_callback('style', 'rcmail_washtml_callback'); 
     641 
     642  // Remove non-UTF8 characters (#1487813) 
     643  $html = rc_utf8_clean($html); 
    641644 
    642645  $html = $washer->wash($html); 
  • trunk/roundcubemail/tests/mailfunc.php

    r4710 r5407  
    101101 
    102102  /** 
     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  /** 
    103114   * Test links pattern replacements in plaintext messages 
    104115   */ 
Note: See TracChangeset for help on using the changeset viewer.