From f0cf0ebb485432b444b1d85843385ebfda0260fd Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 30 May 2012 19:11:01 -0700 Subject: [PATCH] prevent email from leaking in feeds --- include/items.php | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.39.5