]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/CGI/Bugreport.pm
ignore addresses which do not have @ to work around people who use improperly formatt...
[debbugs.git] / Debbugs / CGI / Bugreport.pm
index dc02b224c4c77b7757ab6324fd686bd0c92b2f50..d085ed4fb76681c4ca9f20a6ce1dabea01f177c8 100644 (file)
@@ -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}//''));
 }