aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-22 02:56:32 -0800
committerfriendica <info@friendica.com>2013-01-22 02:56:32 -0800
commitbeb3301d43c0d532bd6984ee745074479babdabb (patch)
treee1fb9a4ad9ef56456f6e06049053f2234ce79c63 /mod/directory.php
parentbda4ca4c0d9f247675f4c241ecb0d402bb380d8f (diff)
downloadvolse-hubzilla-beb3301d43c0d532bd6984ee745074479babdabb.tar.gz
volse-hubzilla-beb3301d43c0d532bd6984ee745074479babdabb.tar.bz2
volse-hubzilla-beb3301d43c0d532bd6984ee745074479babdabb.zip
security fixes related to directory access and sites that are off the grid
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/directory.php b/mod/directory.php
index d9182d1bd..f2d9e1e02 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -56,6 +56,8 @@ function directory_content(&$a) {
$query = $url . '?f=' ;
if($search)
$query .= '&name=' . urlencode($search);
+ if(strpos($search,'@'))
+ $query .= '&address=' . urlencode($search);
if($a->pager['page'] != 1)
$query .= '&p=' . $a->pager['page'];
@@ -63,6 +65,8 @@ function directory_content(&$a) {
logger('mod_directory: query: ' . $query);
$x = z_fetch_url($query);
+ logger('directory: return from upstream: ' . print_r($x,true));
+
if($x['success']) {
$t = 0;
$j = json_decode($x['body'],true);