aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-05-11 10:41:57 +0200
committerGitHub <noreply@github.com>2017-05-11 10:41:57 +0200
commitf34b060e23baf02b1dc7865f4b5d964aae391f9b (patch)
treeb0385005d60415e02942a5c7e356083aeb7a517d /Zotlabs
parent582d075c4501ede78e35ac2207741c9a849d3673 (diff)
parent1077686bdaacd12912ec325f69349cb333420069 (diff)
downloadvolse-hubzilla-f34b060e23baf02b1dc7865f4b5d964aae391f9b.tar.gz
volse-hubzilla-f34b060e23baf02b1dc7865f4b5d964aae391f9b.tar.bz2
volse-hubzilla-f34b060e23baf02b1dc7865f4b5d964aae391f9b.zip
Merge pull request #767 from zotlabs/realm_ac
send directory realm_token for navbar autocomplete searches - if conf…
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);