From b4765a3ca8eb898a752f4a77bc9d4a520ee499c7 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 26 Feb 2009 02:06:14 +0000 Subject: 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 --- email_in.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'email_in.pl') diff --git a/email_in.pl b/email_in.pl index 1edce55d8..59a716a57 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) { -- cgit v1.2.3-24-g4f1b