Bug 584018: @foo= bar in email_in.pl is not parsed correctly, due to a missing whitespace before "="

r/a=mkanat


git-svn-id: svn://10.0.0.236/branches/BUGZILLA-4_0-BRANCH@260960 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2010-08-04 00:19:38 +00:00
parent 6505c8090c
commit d901a2ef92
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
7364 7365

View File

@@ -106,7 +106,7 @@ sub parse_mail {
# Otherwise, we stop parsing fields on the first blank line. # Otherwise, we stop parsing fields on the first blank line.
$line = trim($line); $line = trim($line);
last if !$line; last if !$line;
if ($line =~ /^\@(\S+)\s*(?:=|\s|$)\s*(.*)\s*/) { if ($line =~ /^\@(\w+)\s*(?:=|\s|$)\s*(.*)\s*/) {
$current_field = lc($1); $current_field = lc($1);
$fields{$current_field} = $2; $fields{$current_field} = $2;
} }