]> 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:09:53 +0000 (02:09 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 4 Aug 2010 00:09:53 +0000 (02:09 +0200)
r/a=mkanat

email_in.pl

index fd86bcecf15cb8310f0f7d01cede416d222af329..0382c4e8aaf3be3e5c6eaef77f408fb980a6b479 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;
             }