From: mkanat%bugzilla.org <> Date: Thu, 26 Feb 2009 02:06:25 +0000 (+0000) Subject: Bug 479446: email_in.pl wasn't splitting lines properly when they ended with CRL X-Git-Tag: bugzilla-3.2.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0b72f5713aca0802319846cf0d04e5e22325cbc;p=thirdparty%2Fbugzilla.git Bug 479446: email_in.pl wasn't splitting lines properly when they ended with CRL F (which is the actual RFC standard email line ending). Patch by Eric Olson r=mkanat, a=mkanat --- diff --git a/email_in.pl b/email_in.pl index e1ebd3e0c9..08e1db7859 100644 --- a/email_in.pl +++ b/email_in.pl @@ -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) {