diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-23 17:35:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-23 17:35:16 +0000 |
commit | 0f68334f0bed0507bfb2157d99052a15511c5a2c (patch) | |
tree | 840966008f6d458d8fc7b17cb8e25bd5b6cc0f76 /app/models | |
parent | 0101e609f72a749aad8ff3ec27157320d53461b6 (diff) | |
download | redmine-0f68334f0bed0507bfb2157d99052a15511c5a2c.tar.gz redmine-0f68334f0bed0507bfb2157d99052a15511c5a2c.zip |
Fixed that MailHandler#plain_text_body was returning nil if there was nothing to strip (#2814).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2520 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/mail_handler.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 8d73f0d6e..9836a4a7e 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -235,6 +235,7 @@ class MailHandler < ActionMailer::Base @plain_text_body = plain_text_part.body.to_s end @plain_text_body.strip! + @plain_text_body end |