From: Horst H. von Brand Date: Fri, 28 Mar 2008 14:09:04 +0000 (-0300) Subject: Fix recipient santitization X-Git-Tag: v1.5.6-rc0~36^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=18023c20656265364d4d1805f435e8420ab70687;p=git.git 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 --- 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\""; }