Commit a63ceb4c authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Linus Torvalds

get_maintainer: quote email address with period

Picky mail systems won't accept email addresses where recipient has period
in name; ie.  David S.  Miller <davemloft.net> will not work.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Acked-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 22dd5b0c
...@@ -605,7 +605,7 @@ sub parse_email { ...@@ -605,7 +605,7 @@ sub parse_email {
$name =~ s/^\"|\"$//g; $name =~ s/^\"|\"$//g;
$address =~ s/^\s+|\s+$//g; $address =~ s/^\s+|\s+$//g;
if ($name =~ /[^a-z0-9 \.\-]/i) { ##has "must quote" chars if ($name =~ /[^\w \-]/i) { ##has "must quote" chars
$name =~ s/(?<!\\)"/\\"/g; ##escape quotes $name =~ s/(?<!\\)"/\\"/g; ##escape quotes
$name = "\"$name\""; $name = "\"$name\"";
} }
...@@ -622,7 +622,7 @@ sub format_email { ...@@ -622,7 +622,7 @@ sub format_email {
$name =~ s/^\"|\"$//g; $name =~ s/^\"|\"$//g;
$address =~ s/^\s+|\s+$//g; $address =~ s/^\s+|\s+$//g;
if ($name =~ /[^a-z0-9 \.\-]/i) { ##has "must quote" chars if ($name =~ /[^\w \-]/i) { ##has "must quote" chars
$name =~ s/(?<!\\)"/\\"/g; ##escape quotes $name =~ s/(?<!\\)"/\\"/g; ##escape quotes
$name = "\"$name\""; $name = "\"$name\"";
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment