]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 584018: @foo= bar in email_in.pl is not parsed correctly, due to a missing whites...
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 4 Aug 2010 00:11:03 +0000 (02:11 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 4 Aug 2010 00:11:03 +0000 (02:11 +0200)
r/a=mkanat

email_in.pl

index f3172c760ec3a27db3226f4af2dde623cc5ac094..3cfbcfa3b70f9dbb1ebf88bc8a2b6f07bf10cba8 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 =~ /^\@(\w+)\s*(?:=|\s|$)\s*(.*)\s*/) {
                 $current_field = lc($1);
                 $fields{$current_field} = $2;
             }