From: mkanat%bugzilla.org <> Date: Thu, 26 Feb 2009 02:06:14 +0000 (+0000) Subject: Bug 479446: email_in.pl wasn't splitting lines properly when they ended with CRLF... X-Git-Tag: bugzilla-3.3.4~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4765a3ca8eb898a752f4a77bc9d4a520ee499c7;p=thirdparty%2Fbugzilla.git Bug 479446: email_in.pl wasn't splitting lines properly when they ended with CRLF (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 1edce55d82..59a716a57a 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) {