projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d8ad1a
)
Entfernte Funktion SL::Mailer::recode nicht mehr aufrufen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 2 Nov 2012 11:09:48 +0000
(12:09 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 2 Nov 2012 11:09:48 +0000
(12:09 +0100)
Fixt #2035.
SL/Mailer/Sendmail.pm
patch
|
blob
|
history
diff --git
a/SL/Mailer/Sendmail.pm
b/SL/Mailer/Sendmail.pm
index
c4ab662
..
ea1e63b
100644
(file)
--- 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 );