Link usernames in comments to the contact form instead of exposing email addresses

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-03-24 18:36:43 +00:00
committed by WineHQ
parent c545581571
commit 8e6db0334b

View File

@@ -454,7 +454,8 @@ function forum_lookup_user($iUserId)
{
$oUser = new User($iUserId);
if($_SESSION['current']->isLoggedIn())
$sMailto = '<a href="mailto:' . $oUser->sEmail . '">' . $oUser->sRealname . '</a>';
$sMailto = '<a href="'.BASE.'contact.php?iRecipientId='.
$oUser->iUserId.'">' .$oUser->sRealname . '</a>';
else
$sMailto = $oUser->sRealname;
}