Skip to content

Commit

Permalink
Fix recipient santitization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Horst H. von Brand authored and Junio C Hamano committed May 21, 2008
1 parent e4d594c commit 18023c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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\"";
}

Expand Down

0 comments on commit 18023c2

Please sign in to comment.