From: Don Armstrong <don@donarmstrong.com>
Date: Tue, 11 Nov 2014 22:52:06 +0000 (-0800)
Subject: ignore addresses which do not have @ to work around people who use improperly formatt... 
X-Git-Tag: release/2.6.0~245
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=305a309e2c038f2ebf4c2f603a00cea175eea3f0;p=debbugs.git

ignore addresses which do not have @ to work around people who use improperly formatted From: address lines
---

diff --git a/Debbugs/CGI/Bugreport.pm b/Debbugs/CGI/Bugreport.pm
index dc02b224..d085ed4f 100644
--- a/Debbugs/CGI/Bugreport.pm
+++ b/Debbugs/CGI/Bugreport.pm
@@ -474,7 +474,7 @@ sub __libravatar_url {
     if (not defined $config{libravatar_uri} or not length $config{libravatar_uri}) {
         return undef;
     }
-    ($email) = get_addresses($email);
+    ($email) = grep {/\@/} get_addresses($email);
     return $config{libravatar_uri}.uri_escape_utf8($email.($config{libravatar_uri_options}//''));
 }