From 2f0e7cbbb0703d510a761e2892727e84b3cdcbec Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 21 Dec 2008 01:57:59 -0800 Subject: 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 --- git-send-email.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1