diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-10 08:18:54 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-10 08:18:54 +0000 |
| commit | 0426c50f8254bb4bfff6ef49ddc2a4a05264608b (patch) | |
| tree | 0306f506a8866a3f6a507e7a78cc20b793316252 /roundcubemail/program/steps | |
| parent | 51b47415144677d3ccda4d1a28e2e40a5776fc27 (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/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 39c25f19c..8407b06cd 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -639,6 +639,9 @@ function rcmail_wash_html($html, $p = array(), $cid_replaces) if (!$p['skip_washer_style_callback']) $washer->add_callback('style', 'rcmail_washtml_callback'); + // Remove non-UTF8 characters (#1487813) + $html = rc_utf8_clean($html); + $html = $washer->wash($html); $REMOTE_OBJECTS = $washer->extlinks; |
