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>
Horst H. von Brand committed
Mar 28, 2008 at 11:09 UTC
18023c20656265364d4d1805f435e8420ab70687
1 file changed
+1
-1
git-send-email.perl
+1
-1
@@ -633,7 +633,7 @@ sub sanitize_address
633
634
# double quotes are needed if specials or CTLs are included
635
elsif ($recipient_name =~ /[][()<>@,;:\\".\000-\037\177]/) {
636
- $recipient_name =~ s/(["\\\r])/\\$1/;
636
+ $recipient_name =~ s/(["\\\r])/\\$1/g;
637
$recipient_name = "\"$recipient_name\"";
638
}
639