]> git.mxchange.org Git - friendica.git/commitdiff
prevent email from leaking in feeds
authorfriendica <info@friendica.com>
Thu, 31 May 2012 02:11:01 +0000 (19:11 -0700)
committerfriendica <info@friendica.com>
Thu, 31 May 2012 02:11:01 +0000 (19:11 -0700)
include/items.php

index 8324d4bdd9363e06c735862d9269a5a5c112752e..0ed16217fae917634a0cad8db85ee62c728266b2 100644 (file)
@@ -180,6 +180,10 @@ function get_feed_for(&$a, $dfrn_id, $owner_nick, $last_update, $direction = 0)
 
        foreach($items as $item) {
 
+               // prevent private email from leaking.
+               if($item['network'] === NETWORK_MAIL)
+                       continue;
+
                // public feeds get html, our own nodes use bbcode
 
                if($public_feed) {