From: friendica Date: Fri, 11 May 2012 12:19:29 +0000 (-0700) Subject: fix search/new against possible email leakage X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4e0b0d4e43a26dc9bfddd2980a44fd738652cfda;p=friendica.git fix search/new against possible email leakage --- diff --git a/include/conversation.php b/include/conversation.php index ff68462abd..6bf673b97f 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -278,6 +278,9 @@ function conversation(&$a, $items, $mode, $update, $preview = false) { else $nickname = $a->user['nickname']; + // prevent private email from leaking. + if($item['network'] === NETWORK_MAIL && local_user() != $item['uid']) + continue; $profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']); if($item['author-link'] && (! $item['author-name']))