aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-10 17:02:56 -0700
committerzotlabs <mike@macgirvin.com>2017-05-10 17:02:56 -0700
commit1077686bdaacd12912ec325f69349cb333420069 (patch)
tree221c60f94d16e92be0f660e72ff80df4874e8254 /Zotlabs
parent6c0e0b3eaeead84686148f0fa43cd441357a8b8c (diff)
downloadvolse-hubzilla-1077686bdaacd12912ec325f69349cb333420069.tar.gz
volse-hubzilla-1077686bdaacd12912ec325f69349cb333420069.tar.bz2
volse-hubzilla-1077686bdaacd12912ec325f69349cb333420069.zip
send directory realm_token for navbar autocomplete searches - if configured
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Acl.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Acl.php b/Zotlabs/Module/Acl.php
index c3c50cac2..83fafbdff 100644
--- a/Zotlabs/Module/Acl.php
+++ b/Zotlabs/Module/Acl.php
@@ -412,10 +412,12 @@ class Acl extends \Zotlabs\Web\Controller {
$directory = find_upstream_directory($dirmode);
$url = $directory['url'] . '/dirsearch';
}
+
+ $token = get_config('system','realm_token');
$count = (x($_REQUEST,'count') ? $_REQUEST['count'] : 100);
if($url) {
- $query = $url . '?f=' ;
+ $query = $url . '?f=' . (($token) ? '&t=' . urlencode($token) : '');
$query .= '&name=' . urlencode($search) . "&limit=$count" . (($address) ? '&address=' . urlencode($search) : '');
$x = z_fetch_url($query);