aboutsummaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorHorst H. von Brand <vonbrand@inf.utfsm.cl>2008-03-28 11:09:04 -0300
committerJunio C Hamano <gitster@pobox.com>2008-05-21 13:05:50 -0700
commit18023c20656265364d4d1805f435e8420ab70687 (patch)
tree5f5654d0771fe7ce1f2a43da4e7380a2c3b3ee27 /git-send-email.perl
parente4d594c6bdcb25b996120fe21c901af7a08a7f6d (diff)
downloadgit-18023c20656265364d4d1805f435e8420ab70687.tar.gz
git-18023c20656265364d4d1805f435e8420ab70687.tar.xz
Fix recipient santitization
Need to quote all special characters, not just the first one Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index be4a20d7c..5630276f7 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -633,7 +633,7 @@ sub sanitize_address
# double quotes are needed if specials or CTLs are included
elsif ($recipient_name =~ /[][()<>@,;:\\".\000-\037\177]/) {
- $recipient_name =~ s/(["\\\r])/\\$1/;
+ $recipient_name =~ s/(["\\\r])/\\$1/g;
$recipient_name = "\"$recipient_name\"";
}