diff options
| author | Junio C Hamano <junkio@cox.net> | 2006-06-22 10:36:26 -0700 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2006-06-22 10:36:26 -0700 |
| commit | bf9e9542f94bc39e8bc653065d477bd25e79010e (patch) | |
| tree | ed2db94a1a96b00f843e27a93229d0616e6368fc /git-send-email.perl | |
| parent | Merge branch 'ew/rebase' into next (diff) | |
| parent | Merge branch 'js/lsfix' (diff) | |
| download | git-1.4.1-rc1.tar.gz git-1.4.1-rc1.zip | |
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-x | git-send-email.perl | 14 |
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 { |
