withold e-mail addresses beginning with a hyphen from contact page

SVN revision: 57650
This commit is contained in:
Eric Schuele 2011-03-10 03:32:03 +00:00
parent cc32c0802b
commit 50646c434b
1 changed files with 6 additions and 1 deletions

View File

@ -74,7 +74,12 @@ function dev_data_contact($data)
$mail = @$data['E-Mail'];
if ( !empty($mail) )
return "<a href='mailto:$mail'>$name</a>";
{
// Devs whose e-mail begins with a '-' prefer it not be on the
// contact page, in an effort to minimize spam.
if ( substr($mail, 0, 1) != "-" )
return "<a href='mailto:$mail'>$name</a>";
}
return $name;
}