From 0f68334f0bed0507bfb2157d99052a15511c5a2c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 23 Feb 2009 17:35:16 +0000 Subject: [PATCH] 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 --- app/models/mail_handler.rb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5