* [PATCH] address: no commas in email addresses
@ 2016-06-17 1:21 Eric Wong
0 siblings, 0 replies; only message in thread
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 [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-17 1:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-17 1:21 [PATCH] address: no commas in email addresses Eric Wong
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).