diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-12-06 11:13:55 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-12-06 11:13:55 +0000 |
| commit | f390ac2bde2493be936bd6c8fe509cc525b40725 (patch) | |
| tree | cbf6391fd4e0cbde64cd92d7cd3815f7d05d531f /roundcubemail/program/steps/utils | |
| parent | 55151588a7078ef40e458acacd5ad1c25ae8af2e (diff) | |
- Fix plaintext versions of HTML messages don't contain placeholders for emotions (#1485206)
git-svn-id: https://svn.roundcube.net/trunk@4309 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/utils')
| -rw-r--r-- | roundcubemail/program/steps/utils/html2text.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/utils/html2text.inc b/roundcubemail/program/steps/utils/html2text.inc index ef74ec49e..15c6a52a4 100644 --- a/roundcubemail/program/steps/utils/html2text.inc +++ b/roundcubemail/program/steps/utils/html2text.inc @@ -19,7 +19,12 @@ */ -$converter = new html2text($HTTP_RAW_POST_DATA); +$html = $HTTP_RAW_POST_DATA; + +// Replace emoticon images with its text representation +$html = rcmail_replace_emoticons($html); + +$converter = new html2text($html); header('Content-Type: text/plain; charset=UTF-8'); print rtrim($converter->get_text()); |
