summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-22 10:36:26 -0700
committerJunio C Hamano <junkio@cox.net>2006-06-22 10:36:26 -0700
commitbf9e9542f94bc39e8bc653065d477bd25e79010e (patch)
treeed2db94a1a96b00f843e27a93229d0616e6368fc /git-send-email.perl
parentb8ca3fbd462f94b980af828528c8f1fa59601b57 (diff)
parent5ab2c0a47574c92f92ea3709b23ca35d96319edd (diff)
downloadgit-bf9e9542f94bc39e8bc653065d477bd25e79010e.tar.gz
Merge branch 'master' into nextv1.4.1-rc1
* master: git-svn: fix commit --edit flag when using SVN:: libraries Makefile: do not force unneeded recompilation upon GIT_VERSION changes Check and document the options to prevent mistakes. Pass -DDEFAULT_GIT_TEMPLATE_DIR only where actually used.
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl14
1 files changed, 14 insertions, 0 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 7b1cca70ab..c5d9e73351 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -65,6 +65,20 @@ my $rc = GetOptions("from=s" => \$from,
"no-signed-off-cc|no-signed-off-by-cc" => \$no_signed_off_cc,
);
+# Verify the user input
+
+foreach my $entry (@to) {
+ die "Comma in --to entry: $entry'\n" unless $entry !~ m/,/;
+}
+
+foreach my $entry (@initial_cc) {
+ die "Comma in --cc entry: $entry'\n" unless $entry !~ m/,/;
+}
+
+foreach my $entry (@bcclist) {
+ die "Comma in --bcclist entry: $entry'\n" unless $entry !~ m/,/;
+}
+
# Now, let's fill any that aren't set in with defaults:
sub gitvar {