Skip to content

Commit 18023c2

Browse files
vonbrandgitster
authored andcommitted
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>
1 parent e4d594c commit 18023c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ sub sanitize_address
633633

634634
# double quotes are needed if specials or CTLs are included
635635
elsif ($recipient_name =~ /[][()<>@,;:\\".\000-\037\177]/) {
636-
$recipient_name =~ s/(["\\\r])/\\$1/;
636+
$recipient_name =~ s/(["\\\r])/\\$1/g;
637637
$recipient_name = "\"$recipient_name\"";
638638
}
639639

0 commit comments

Comments
 (0)