From: Don Armstrong 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/?p=debbugs.git;a=commitdiff_plain;h=305a309e2c038f2ebf4c2f603a00cea175eea3f0 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 dc02b22..d085ed4 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}//'')); }