From 0768134de16b1c75a1908da09f58cd627f2330b0 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 --- program/steps/mail/sendmail.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'program/steps/mail/sendmail.inc') diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index a0c049682..70a6feb96 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -468,6 +468,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