summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Mailer.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-11-27 03:33:47 +0100
committermkanat%bugzilla.org <>2007-11-27 03:33:47 +0100
commitc031e0bf0b505e711e48dbe71dd248326e9e77f3 (patch)
tree556fa0e279675bc956c8343d9d59d5e172516c2d /Bugzilla/Mailer.pm
parentb8b5fb03bd8a552b993f85764868dab35bdd3267 (diff)
downloadbugzilla-c031e0bf0b505e711e48dbe71dd248326e9e77f3.tar.gz
bugzilla-c031e0bf0b505e711e48dbe71dd248326e9e77f3.tar.xz
Bug 374424: unnecessary line breaks and excessive indentation in email subject lines
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Mailer.pm')
-rw-r--r--Bugzilla/Mailer.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm
index 9c61d54b4..a8ab64913 100644
--- a/Bugzilla/Mailer.pm
+++ b/Bugzilla/Mailer.pm
@@ -71,6 +71,8 @@ sub MessageToMTA {
utf8::decode($value);
}
my $encoded = encode('MIME-Q', $value);
+ # Encode adds unnecessary line breaks, with two spaces after each.
+ $encoded =~ s/\n / /g;
$email->header_set($header, $encoded);
}
}