diff options
author | Horst H. von Brand <vonbrand@inf.utfsm.cl> | 2008-03-28 15:09:04 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-21 22:05:50 +0200 |
commit | 18023c20656265364d4d1805f435e8420ab70687 (patch) | |
tree | 5f5654d0771fe7ce1f2a43da4e7380a2c3b3ee27 /git-send-email.perl | |
parent | git-filter-branch: Clarify file removal example. (diff) | |
download | git-18023c20656265364d4d1805f435e8420ab70687.tar.xz git-18023c20656265364d4d1805f435e8420ab70687.zip |
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>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
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\""; } |