directory leaking hidden channels - logic issue
This commit is contained in:
parent
336768715c
commit
3da20b3797
@ -159,10 +159,12 @@ function dirsearch_content(&$a) {
|
||||
json_return_and_die($spkt);
|
||||
}
|
||||
else {
|
||||
$r = q("SELECT xchan.*, xprof.* from xchan left join xprof on xchan_hash = xprof_hash where $logic $sql_extra and not ( xchan_flags & %d ) and not ( xchan_flags & %d ) $safesql $order $qlimit ",
|
||||
|
||||
$r = q("SELECT xchan.*, xprof.* from xchan left join xprof on xchan_hash = xprof_hash where ( $logic $sql_extra ) and not ( xchan_flags & %d ) and not ( xchan_flags & %d ) $safesql $order $qlimit ",
|
||||
intval(XCHAN_FLAGS_HIDDEN),
|
||||
intval(XCHAN_FLAGS_ORPHAN)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
$ret['page'] = $page + 1;
|
||||
|
Reference in New Issue
Block a user