git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/1] Fix recipient santitization

From
Horst H. von Brand <vonbrand@inf.utfsm.cl>
Date
Mar 28, 2008, 14:09 UTC
Message-ID
<1206713344-11244-1-git-send-email-vonbrand@inf.utfsm.cl>
Need to quote all special characters, not just the first one
Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
---
 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 f62f119..3bdd225 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -635,7 +635,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\"";
 	}
 
-- 
1.5.5.rc2
Next: Junio C Hamano
Message 1 of 2 in “Fix recipient santitization”
  1. 1/1 Fix recipient santitizationHorst H. von Brand, Mar 28, 2008
  2. Junio C HamanoMay 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.