* [PATCH] address: no commas in email addresses
@ 2016-06-17 1:21 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-06-17 1:21 UTC (permalink / raw)
To: meta
We only do loose parsing, here, and I don't think I've seen
a comma in a valid email address, so lets not support them.
---
lib/PublicInbox/Address.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/Address.pm b/lib/PublicInbox/Address.pm
index ef4cbdc..8b3daf5 100644
--- a/lib/PublicInbox/Address.pm
+++ b/lib/PublicInbox/Address.pm
@@ -7,7 +7,7 @@ use warnings;
# very loose regexes, here. We don't need RFC-compliance,
# just enough to make thing sanely displayable and pass to git
-sub emails { ($_[0] =~ /([^<\s]+\@[^>\s]+)/g) }
+sub emails { ($_[0] =~ /([^<\s,]+\@[^>\s,]+)/g) }
sub from_name {
my ($val) = @_;
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-06-17 1:21 7% [PATCH] address: no commas in email addresses Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).