[Rt-commit] rt branch, 4.0/encode-dashboard-subjects, created. rt-4.0.10-132-g5784ae2
Thomas Sibley
trs at bestpractical.com
Thu Mar 21 15:56:40 EDT 2013
The branch, 4.0/encode-dashboard-subjects has been created
at 5784ae216b034290ed8edd1cf5bb154ad86fabab (commit)
- Log -----------------------------------------------------------------
commit 5784ae216b034290ed8edd1cf5bb154ad86fabab
Author: Thomas Sibley <trs at bestpractical.com>
Date: Thu Mar 21 12:50:08 2013 -0700
Encode dashboard subjects and attachment filenames properly for MIME
Dashboard names may contain Unicode characters which need MIME-word
encoding first. MIME::Entity doesn't handle this for us.
Reported-by: Christian Loos <github at netsandbox.de>
diff --git a/lib/RT/Dashboard/Mailer.pm b/lib/RT/Dashboard/Mailer.pm
index 0ad2fb2..328958f 100644
--- a/lib/RT/Dashboard/Mailer.pm
+++ b/lib/RT/Dashboard/Mailer.pm
@@ -396,7 +396,7 @@ sub BuildEmail {
Type => $mimetype,
Encoding => $encoding,
Disposition => 'inline',
- Name => $filename,
+ Name => RT::Interface::Email::EncodeToMIME( String => $filename ),
'Content-Id' => $cid_of{$uri},
);
@@ -413,7 +413,7 @@ sub BuildEmail {
my $entity = MIME::Entity->build(
From => $args{From},
To => $args{To},
- Subject => $args{Subject},
+ Subject => RT::Interface::Email::EncodeToMIME( String => $args{Subject} ),
Type => "multipart/mixed",
);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list