appdb/include comment.php
WineHQ
wineowner at wine.codeweavers.com
Thu Jun 15 22:18:46 CDT 2006
ChangeSet ID: 25772
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2006/06/15 22:18:46
Modified files:
include : comment.php
Log message:
Tony Lambregts <tony.lambregts at gmail.com>
Don't expose users email addresses to robots
Patch: http://cvs.winehq.org/patch.py?id=25772
Old revision New revision Changes Path
1.15 1.16 +4 -1 appdb/include/comment.php
Index: appdb/include/comment.php
diff -u -p appdb/include/comment.php:1.15 appdb/include/comment.php:1.16
--- appdb/include/comment.php:1.15 16 Jun 2006 3:18:46 -0000
+++ appdb/include/comment.php 16 Jun 2006 3:18:46 -0000
@@ -194,7 +194,10 @@ function forum_lookup_user($iUserId)
if ($iUserId > 0)
{
$oUser = new User($iUserId);
- $sMailto = '<a href="mailto:' . $oUser->sEmail . '">' . $oUser->sRealname . '</a>';
+ if($_SESSION['current']->isLoggedIn())
+ $sMailto = '<a href="mailto:' . $oUser->sEmail . '">' . $oUser->sRealname . '</a>';
+ else
+ $sMailto = $oUser->sRealname;
}
if (!$iUserId || !$oUser->isLoggedIn())
{
More information about the wine-cvs
mailing list