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
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