]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 374424: unnecessary line breaks and excessive indentation in email subject lines
authormkanat%bugzilla.org <>
Tue, 27 Nov 2007 02:33:47 +0000 (02:33 +0000)
committermkanat%bugzilla.org <>
Tue, 27 Nov 2007 02:33:47 +0000 (02:33 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

Bugzilla/Mailer.pm

index 9c61d54b418951650650e4aaf6fdf44200146943..a8ab649136ce2edd4d97b91a2b5a4b3fe3ead1fb 100644 (file)
@@ -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);
         }
     }