From: Moritz Bunkus Date: Fri, 2 Nov 2012 11:09:48 +0000 (+0100) Subject: Entfernte Funktion SL::Mailer::recode nicht mehr aufrufen X-Git-Tag: release-3.0.0beta1~53 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=93b7fa24a7245785251ae99cade5bb5f26a4c0f5;p=kivitendo-erp.git Entfernte Funktion SL::Mailer::recode nicht mehr aufrufen Fixt #2035. --- diff --git a/SL/Mailer/Sendmail.pm b/SL/Mailer/Sendmail.pm index c4ab66252..ea1e63b8a 100644 --- a/SL/Mailer/Sendmail.pm +++ b/SL/Mailer/Sendmail.pm @@ -2,6 +2,7 @@ package SL::Mailer::Sendmail; use strict; +use Encode; use IO::File; use SL::Template; @@ -17,7 +18,7 @@ sub init { Rose::Object::init(@_); - my $email = $self->mailer->recode($self->myconfig->{email}); + my $email = $::locale->is_utf8 ? Encode::encode('utf-8', $self->myconfig->{email}) : $self->myconfig->{email}; $email =~ s/[^\w\.\-\+=@]//ig; my %temp_form = ( %{ $self->form }, myconfig_email => $email );