diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-10-20 12:22:00 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-10-20 12:24:03 +0200 |
commit | ff18a27d6b02b82f26414e978e925a96467dc002 (patch) | |
tree | a30ccd553d1415a6c2580b531571f40991b4f11b /program/steps/mail | |
parent | dd82f1b59fde3a67afd386c66224504938ed5b18 (diff) |
Fix bug where wrong words were highlighted on spell-before-send check
Conflicts:
CHANGELOG
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/sendmail.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index c4cfc6013..562f15566 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -428,6 +428,7 @@ if (!$savedraft) { if ($CONFIG['spellcheck_before_send'] && $CONFIG['enable_spellcheck'] && empty($COMPOSE['spell_checked']) && !empty($message_body) ) { + $message_body = str_replace("\r\n", "\n", $message_body); $spellchecker = new rcube_spellchecker(get_input_value('_lang', RCUBE_INPUT_GPC)); $spell_result = $spellchecker->check($message_body, $isHtml); |