From 0768134de16b1c75a1908da09f58cd627f2330b0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Sat, 20 Oct 2012 06:22:00 -0400 Subject: [PATCH] Fix bug where wrong words were highlighted on spell-before-send check --- CHANGELOG | 1 + program/steps/mail/sendmail.inc | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index b3c33b3..1c41d26 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 handling of URLs with asterisk characters (#1488759) - Remove automatic to-lowercase conversion of usernames (#1488715) - Fix scrolling quirk in email preview frame using Opera 12 (#1488763) diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index a0c0496..70a6feb 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -468,6 +468,7 @@ 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); -- Gitblit v1.9.1