Skip to content

Commit

Permalink
Add protection against publishing email addresses
Browse files Browse the repository at this point in the history
It's possible (like happened last release) for a contributor to
end up being an email address. Even though the address is public,
some may not wish for us to plaster it all over the place.

Fix by redacting the hostname of the email address if one shows up.
  • Loading branch information
zoffixznet committed Dec 19, 2016
1 parent e64dd9a commit 8219acf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/contributors.pl6
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,7 @@ sub nick-to-name($nick) {
}
}
}
$nick ?? ( %nick-to-name{lc $nick} // $nick ) !! '<unknown>';
$nick
?? (%nick-to-name{lc $nick} // $nick).subst(/\S+ '@' <(\S+/, '<redacted>')
!! '<unknown>';
}

0 comments on commit 8219acf

Please sign in to comment.