From: friendica Date: Thu, 31 May 2012 02:11:01 +0000 (-0700) Subject: prevent email from leaking in feeds X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f0cf0ebb485432b444b1d85843385ebfda0260fd;p=friendica.git prevent email from leaking in feeds --- diff --git a/include/items.php b/include/items.php index 8324d4bdd9..0ed16217fa 100644 --- a/include/items.php +++ b/include/items.php @@ -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) {