]> source.dussan.org Git - redmine.git/commitdiff
prevent "can't modify frozen String" exception when mail sending error (#17235)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 1 Jul 2014 03:52:27 +0000 (03:52 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 1 Jul 2014 03:52:27 +0000 (03:52 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13198 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/admin_controller.rb

index 665c07d6dca314e5229715dea842cf9778e66ef3..c2d464d42e7c97c568d6cb5d05c8e26b43502413 100644 (file)
@@ -65,7 +65,7 @@ class AdminController < ApplicationController
       @test = Mailer.test_email(User.current).deliver
       flash[:notice] = l(:notice_email_sent, User.current.mail)
     rescue Exception => e
-      flash[:error] = l(:notice_email_error, Redmine::CodesetUtil.replace_invalid_utf8(e.message))
+      flash[:error] = l(:notice_email_error, Redmine::CodesetUtil.replace_invalid_utf8(e.message.dup))
     end
     ActionMailer::Base.raise_delivery_errors = raise_delivery_errors
     redirect_to settings_path(:tab => 'notifications')