From: Moritz Bunkus Date: Fri, 11 Sep 2009 06:46:47 +0000 (+0200) Subject: Fix für falsche Syntax bei in Strings eingebetteten Variablen. X-Git-Tag: release-2.6.1beta1~287 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a0a29e6d425938bdeaaaf7787ad3aee970b59a46;p=kivitendo-erp.git Fix für falsche Syntax bei in Strings eingebetteten Variablen. --- diff --git a/SL/Mailer.pm b/SL/Mailer.pm index 5e280128b..2e2a60cec 100644 --- a/SL/Mailer.pm +++ b/SL/Mailer.pm @@ -184,7 +184,7 @@ $self->{message} my $application = ($attachment =~ /(^\w+$)|\.(html|text|txt|sql)$/) ? "text" : "application"; my $content_type = SL::MIME->mime_type_from_ext($filename); - $content_type = "${application}/${self->{format}}" if (!$content_type && $self->{format}); + $content_type = "${application}/$self->{format}" if (!$content_type && $self->{format}); $content_type ||= 'application/octet-stream'; open(IN, $attachment);