1. Stefan Saasen
  2. git

Commits

Horst H. von Brand  committed 18023c2

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>

  • Participants
  • Parent commits e4d594c
  • Branches master

Comments (0)

Files changed (1)

File git-send-email.perl

View file
  • Ignore whitespace
 
 	# 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\"";
 	}