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:
cc3a0a3
)
Fix für falsche Syntax bei in Strings eingebetteten Variablen.
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 11 Sep 2009 06:46:47 +0000
(08:46 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 11 Sep 2009 06:49:21 +0000
(08:49 +0200)
SL/Mailer.pm
patch
|
blob
|
history
diff --git
a/SL/Mailer.pm
b/SL/Mailer.pm
index
5e28012
..
2e2a60c
100644
(file)
--- 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);