Don't expose users email addresses to robots

This commit is contained in:
Tony Lambregts
2006-06-16 03:18:45 +00:00
committed by WineHQ
parent 1069478c8a
commit 7fec72b632

View File

@@ -194,7 +194,10 @@ function forum_lookup_user($iUserId)
if ($iUserId > 0)
{
$oUser = new User($iUserId);
if($_SESSION['current']->isLoggedIn())
$sMailto = '<a href="mailto:' . $oUser->sEmail . '">' . $oUser->sRealname . '</a>';
else
$sMailto = $oUser->sRealname;
}
if (!$iUserId || !$oUser->isLoggedIn())
{