PRIVACY: possible privacy leakage under a defined set of circumstances

This commit is contained in:
redmatrix
2015-05-20 18:46:23 -07:00
parent fe00d29047
commit 6466774b6e
8 changed files with 32 additions and 26 deletions

View File

@@ -452,8 +452,6 @@ function item_post(&$a) {
}
}
$post_type = notags(trim($_REQUEST['type']));
$mimetype = notags(trim($_REQUEST['mimetype']));
if(! $mimetype)
$mimetype = 'text/bbcode';
@@ -659,8 +657,19 @@ function item_post(&$a) {
$item_unseen = 1;
if($post_type === 'wall' || $post_type === 'wall-comment')
$item_flags = $item_flags | ITEM_WALL;
// determine if this is a wall post
if($parent) {
if($parent_item['item_flags'] & ITEM_WALL) {
$item_flags = $item_flags | ITEM_WALL;
}
}
else {
if(! $webpage) {
$item_flags = $item_flags | ITEM_WALL;
}
}
if($origin)
$item_flags = $item_flags | ITEM_ORIGIN;