diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-02 01:02:45 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-02 01:02:45 +0200 |
commit | dac48ba3875e23c64ba9d79f81705bc5e84a9fc4 (patch) | |
tree | 0a4fd125456eacfd6bb25f5f5a19b4c75916d2fb | |
parent | 21c69e6bf1158d1277fb7e1b4fab20a594876186 (diff) | |
download | bugzilla-dac48ba3875e23c64ba9d79f81705bc5e84a9fc4.tar.gz bugzilla-dac48ba3875e23c64ba9d79f81705bc5e84a9fc4.tar.xz |
Bug 547748: Wrong parsing of email_in emails if some @field has no data
r/a=mkanat
-rwxr-xr-x | email_in.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/email_in.pl b/email_in.pl index 6033c31c4..fd86bcecf 100755 --- a/email_in.pl +++ b/email_in.pl @@ -106,7 +106,7 @@ sub parse_mail { # Otherwise, we stop parsing fields on the first blank line. $line = trim($line); last if !$line; - if ($line =~ /^\@(\S+)\s*(?:=|\s)\s*(.*)\s*/) { + if ($line =~ /^\@(\S+)\s*(?:=|\s|$)\s*(.*)\s*/) { $current_field = lc($1); $fields{$current_field} = $2; } |