]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 479446: email_in.pl wasn't splitting lines properly when they ended with CRL
authormkanat%bugzilla.org <>
Thu, 26 Feb 2009 02:06:25 +0000 (02:06 +0000)
committermkanat%bugzilla.org <>
Thu, 26 Feb 2009 02:06:25 +0000 (02:06 +0000)
F (which is the actual RFC standard email line ending).
Patch by Eric Olson <Eric.Olson@adm.com> r=mkanat, a=mkanat

email_in.pl

index e1ebd3e0c9ed11855389ddb033bd5285fba5d2a1..08e1db78599691af345009f51da544dc2b7ba317 100644 (file)
@@ -88,7 +88,7 @@ sub parse_mail {
     debug_print("Body:\n" . $body, 3);
 
     $body = remove_leading_blank_lines($body);
-    my @body_lines = split("\n", $body);
+    my @body_lines = split(/\r?\n/s, $body);
 
     # If there are fields specified.
     if ($body =~ /^\s*@/s) {