]> git.mxchange.org Git - friendica.git/commitdiff
fix search/new against possible email leakage
authorfriendica <info@friendica.com>
Fri, 11 May 2012 12:19:29 +0000 (05:19 -0700)
committerfriendica <info@friendica.com>
Fri, 11 May 2012 12:19:29 +0000 (05:19 -0700)
include/conversation.php

index ff68462abdd84b58df3d1804d2a17adc722ea824..6bf673b97fa658fb5faa76c37a3aad3c3dd1622c 100644 (file)
@@ -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']))