From: Junio C Hamano Date: Sun, 21 Dec 2008 09:57:59 +0000 (-0800) Subject: send-email: futureproof split_addrs() sub X-Git-Tag: v1.6.1-rc4~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f0e7cbbb0703d510a761e2892727e84b3cdcbec;p=git.git 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 --- 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;