From: Sven Schöling Date: Wed, 11 Mar 2009 15:21:22 +0000 (+0000) Subject: Charset nur bei Type 'text' Anhängen setzen. X-Git-Tag: release-2.6.0beta2~143 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=48399a5a2938079361780de1e87e15e6dbbca349;p=kivitendo-erp.git Charset nur bei Type 'text' Anhängen setzen. --- diff --git a/SL/Mailer.pm b/SL/Mailer.pm index 2cd3b4374..1cf519b60 100644 --- a/SL/Mailer.pm +++ b/SL/Mailer.pm @@ -194,7 +194,15 @@ $self->{message} } print OUT qq|--${boundary} -Content-Type: $application/$self->{format}; name="$filename"; charset="$self->{charset}" +Content-Type: $application/$self->{format}; name="$filename"; |; + + # only set charset for attachements of type text. every other type should not have this field + # refer to bug 883 for detailed information + if ($application eq 'text' && $self->{charset}) { + print OUT qq|charset="$self->{charset}" |; + } + + print OUT qq| Content-Transfer-Encoding: BASE64 Content-Disposition: attachment; filename="$filename"\n\n|;