diff options
author | friendica <info@friendica.com> | 2012-05-30 19:11:01 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-30 19:11:01 -0700 |
commit | f0cf0ebb485432b444b1d85843385ebfda0260fd (patch) | |
tree | 6eb8a4448647f17357d5c5219ddc577f4948230d | |
parent | 15c023a21809c486b057d83a30313597f35ececa (diff) | |
download | volse-hubzilla-f0cf0ebb485432b444b1d85843385ebfda0260fd.tar.gz volse-hubzilla-f0cf0ebb485432b444b1d85843385ebfda0260fd.tar.bz2 volse-hubzilla-f0cf0ebb485432b444b1d85843385ebfda0260fd.zip |
prevent email from leaking in feeds
-rw-r--r-- | include/items.php | 4 |
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) { |