diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-12-21 12:57:59 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-12-21 12:57:59 +0300 |
commit | 2f0e7cbbb0703d510a761e2892727e84b3cdcbec (patch) | |
tree | 79c275d34039e2694a0a9c0d402a1e198839710b | |
parent | 0693f9ddad3d9af3d3424087557bbddce480ce3f (diff) |
send-email: futureproof split_addrs() sub
Matt Kraai points out that calling parse_line() assuming that the caller
ever passes only one argument is a bug waiting to happen, and he is
right.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl index 61144011d0..77ca8fe880 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -361,7 +361,7 @@ foreach my $entry (@bcclist) { } sub split_addrs { - return parse_line('\s*,\s*', 1, @_); + return quotewords('\s*,\s*', 1, @_); } my %aliases; |