]> source.dussan.org Git - redmine.git/commitdiff
Exception message may not be UTF-8 encoded.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 12 Jul 2013 20:16:59 +0000 (20:16 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 12 Jul 2013 20:16:59 +0000 (20:16 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12009 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/admin_controller.rb

index f96cf66fbcdaceecd749fa443eed5e61bcb882ce..2cabbd3e1fdd412616149ead619745571317021b 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, e.message)
+      flash[:error] = l(:notice_email_error, Redmine::CodesetUtil.replace_invalid_utf8(e.message))
     end
     ActionMailer::Base.raise_delivery_errors = raise_delivery_errors
     redirect_to settings_path(:tab => 'notifications')