Commit a63ceb4c36a7674f7efa90e8ba96b44a3989d717
Committed by
Linus Torvalds
1 parent
22dd5b0cba
Exists in
master
and in
20 other branches
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: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
scripts/get_maintainer.pl
... | ... | @@ -605,7 +605,7 @@ |
605 | 605 | $name =~ s/^\"|\"$//g; |
606 | 606 | $address =~ s/^\s+|\s+$//g; |
607 | 607 | |
608 | - if ($name =~ /[^a-z0-9 \.\-]/i) { ##has "must quote" chars | |
608 | + if ($name =~ /[^\w \-]/i) { ##has "must quote" chars | |
609 | 609 | $name =~ s/(?<!\\)"/\\"/g; ##escape quotes |
610 | 610 | $name = "\"$name\""; |
611 | 611 | } |
... | ... | @@ -622,7 +622,7 @@ |
622 | 622 | $name =~ s/^\"|\"$//g; |
623 | 623 | $address =~ s/^\s+|\s+$//g; |
624 | 624 | |
625 | - if ($name =~ /[^a-z0-9 \.\-]/i) { ##has "must quote" chars | |
625 | + if ($name =~ /[^\w \-]/i) { ##has "must quote" chars | |
626 | 626 | $name =~ s/(?<!\\)"/\\"/g; ##escape quotes |
627 | 627 | $name = "\"$name\""; |
628 | 628 | } |