From 7fec72b632741b7a0f00e522bafc1dcfda79d3b4 Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Fri, 16 Jun 2006 03:18:45 +0000 Subject: [PATCH] Don't expose users email addresses to robots --- include/comment.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/comment.php b/include/comment.php index 2c5b597..95007d7 100644 --- a/include/comment.php +++ b/include/comment.php @@ -194,7 +194,10 @@ function forum_lookup_user($iUserId) if ($iUserId > 0) { $oUser = new User($iUserId); - $sMailto = '' . $oUser->sRealname . ''; + if($_SESSION['current']->isLoggedIn()) + $sMailto = '' . $oUser->sRealname . ''; + else + $sMailto = $oUser->sRealname; } if (!$iUserId || !$oUser->isLoggedIn()) {