From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A1F7820179 for ; Fri, 17 Jun 2016 01:21:30 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] address: no commas in email addresses Date: Fri, 17 Jun 2016 01:21:30 +0000 Message-Id: <20160617012130.715-1-e@80x24.org> List-Id: 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) = @_;