]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 547748: Wrong parsing of email_in emails if some @field has no data
authorFrédéric Buclin <LpSolit@gmail.com>
Sun, 1 Aug 2010 23:04:14 +0000 (01:04 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 1 Aug 2010 23:04:14 +0000 (01:04 +0200)
r/a=mkanat

email_in.pl

index 6033c31c42f2a72aa7b038dc5492a453d62f8cdb..fd86bcecf15cb8310f0f7d01cede416d222af329 100755 (executable)
@@ -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;
             }