aboutsummaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-12-21 01:57:59 -0800
committerJunio C Hamano <gitster@pobox.com>2008-12-21 01:57:59 -0800
commit2f0e7cbbb0703d510a761e2892727e84b3cdcbec (patch)
tree79c275d34039e2694a0a9c0d402a1e198839710b /git-send-email.perl
parent0693f9ddad3d9af3d3424087557bbddce480ce3f (diff)
downloadgit-2f0e7cbbb0703d510a761e2892727e84b3cdcbec.tar.gz
git-2f0e7cbbb0703d510a761e2892727e84b3cdcbec.tar.xz
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>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 61144011d..77ca8fe88 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;