From 18023c20656265364d4d1805f435e8420ab70687 Mon Sep 17 00:00:00 2001 From: "Horst H. von Brand" Date: Fri, 28 Mar 2008 11:09:04 -0300 Subject: [PATCH] Fix recipient santitization Need to quote all special characters, not just the first one Signed-off-by: Horst H. von Brand Signed-off-by: Junio C Hamano --- git-send-email.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-send-email.perl b/git-send-email.perl index be4a20d7cd..5630276f78 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\""; } -- 2.11.4.GIT