Link usernames in comments to the contact form instead of exposing email addresses
This commit is contained in:
committed by
WineHQ
parent
c545581571
commit
8e6db0334b
@@ -454,7 +454,8 @@ function forum_lookup_user($iUserId)
|
|||||||
{
|
{
|
||||||
$oUser = new User($iUserId);
|
$oUser = new User($iUserId);
|
||||||
if($_SESSION['current']->isLoggedIn())
|
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
|
else
|
||||||
$sMailto = $oUser->sRealname;
|
$sMailto = $oUser->sRealname;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user