aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dirsearch.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-24 18:34:55 -0700
committerfriendica <info@friendica.com>2013-10-24 18:34:55 -0700
commit3da20b3797b6d29d78197c16f4daac8fed6db895 (patch)
tree7369369e269400d3e3e7bc04d137bb8cf525370c /mod/dirsearch.php
parent336768715ca2f4747c74ded1feda651b3d4b8e80 (diff)
downloadvolse-hubzilla-3da20b3797b6d29d78197c16f4daac8fed6db895.tar.gz
volse-hubzilla-3da20b3797b6d29d78197c16f4daac8fed6db895.tar.bz2
volse-hubzilla-3da20b3797b6d29d78197c16f4daac8fed6db895.zip
directory leaking hidden channels - logic issue
Diffstat (limited to 'mod/dirsearch.php')
-rw-r--r--mod/dirsearch.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php
index 3506178ea..115bc2235 100644
--- a/mod/dirsearch.php
+++ b/mod/dirsearch.php
@@ -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;