Re: [PATCH 5/9] Perform correct quoting of recipient names.

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 5/9] Perform correct quoting of recipient names.

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:07

While this one is definitely an improvement, I am a bit unhappy
about the way @to, @cc and @bcclist are not sanitized the same
way.

Re: [PATCH 5/9] Perform correct quoting of recipient names.

From: Robin H. Johnson <hidden>
Date: 2016-06-15 22:43:07

On Wed, Apr 25, 2007 at 09:15:02PM -0700, Junio C Hamano wrote:
While this one is definitely an improvement, I am a bit unhappy
about the way @to, @cc and @bcclist are not sanitized the same
way.
@bcclist does not need the quoting, as everything except the email addresses is
stripped out of it, see patch 6/9.

I'll do an additional patch for @to however, give me a moment.

-- 
Robin Hugh Johnson
Gentoo Linux Developer & Council Member
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[PATCH 10/9] Sanitize @to recipients.

From: Robin H. Johnson <hidden>
Date: 2016-06-15 22:43:07

We need to sanitize @to as well to ensure that names are properly quoted.

Signed-off-by: Robin H. Johnson <redacted>
---
 git-send-email.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-send-email.perl b/git-send-email.perl
index e1562b3..a45439e 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -274,6 +274,7 @@ sub expand_aliases {
 }
 
 @to = expand_aliases(@to);
+@to = (map { sanitize_address_rfc822($_) } @to);
 @initial_cc = expand_aliases(@initial_cc);
 @bcclist = expand_aliases(@bcclist);
-- 
Robin Hugh Johnson
Gentoo Linux Developer & Council Member
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help