From 4e0b0d4e43a26dc9bfddd2980a44fd738652cfda Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 11 May 2012 05:19:29 -0700 Subject: [PATCH] fix search/new against possible email leakage --- include/conversation.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/conversation.php b/include/conversation.php index ff68462ab..6bf673b97 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']))