summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-20 12:22:00 +0200
committerAleksander Machniak <alec@alec.pl>2012-10-20 12:22:00 +0200
commit0768134de16b1c75a1908da09f58cd627f2330b0 (patch)
tree387f2b6dfd01edb30315d1989de6f814092e8b6a /program/steps/mail
parent5b3a0a2797c8939b397f37dbb9cbf05a50622895 (diff)
Fix bug where wrong words were highlighted on spell-before-send check
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/sendmail.inc1
1 files changed, 1 insertions, 0 deletions
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);