send-email: futureproof split_addrs() sub
authorJunio C Hamano <gitster@pobox.com>
Sun, 21 Dec 2008 09:57:59 +0000 (01:57 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Dec 2008 09:57:59 +0000 (01:57 -0800)
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>
git-send-email.perl

index 6114401..77ca8fe 100755 (executable)
@@ -361,7 +361,7 @@ foreach my $entry (@bcclist) {
 }
 
 sub split_addrs {
-       return parse_line('\s*,\s*', 1, @_);
+       return quotewords('\s*,\s*', 1, @_);
 }
 
 my %aliases;