]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Mailer.pm
Bugfix für Bug 1127. webpages/ct/get_delivery_master ist nicht customer/vendor sicher...
[mfinanz.git] / SL / Mailer.pm
index 5e280128bdf90d2d5554d7d7c51f8ce434bc5129..2e2a60cec10e940bbce0df9781a94b3bb2923097 100644 (file)
@@ -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);
 
       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);
       $content_type    ||= 'application/octet-stream';
 
       open(IN, $attachment);