From ff18a27d6b02b82f26414e978e925a96467dc002 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 20 Oct 2012 12:22:00 +0200 Subject: Fix bug where wrong words were highlighted on spell-before-send check Conflicts: CHANGELOG --- CHANGELOG | 1 + program/steps/mail/sendmail.inc | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index e161d4887..53e0af8ec 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Fix bug where wrong words were highlighted on spell-before-send check - Fix scrolling quirk in email preview frame using Opera 12 (#1488763) - Fix displaying of multipart/alternative messages with empty parts (#1488750) - Fix Warning: htmlspecialchars(): charset `RCMAIL_CHARSET' not supported warning in Installer (#1488744) 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); -- cgit v1.2.3