aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-30 19:11:01 -0700
committerfriendica <info@friendica.com>2012-05-30 19:11:01 -0700
commitf0cf0ebb485432b444b1d85843385ebfda0260fd (patch)
tree6eb8a4448647f17357d5c5219ddc577f4948230d /include/items.php
parent15c023a21809c486b057d83a30313597f35ececa (diff)
downloadvolse-hubzilla-f0cf0ebb485432b444b1d85843385ebfda0260fd.tar.gz
volse-hubzilla-f0cf0ebb485432b444b1d85843385ebfda0260fd.tar.bz2
volse-hubzilla-f0cf0ebb485432b444b1d85843385ebfda0260fd.zip
prevent email from leaking in feeds
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 8324d4bdd..0ed16217f 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) {