aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-14 17:20:24 -0700
committerfriendica <info@friendica.com>2013-09-14 17:20:24 -0700
commit053893b0673d15c255718e5328fbbdb9af29f715 (patch)
tree4e35d15f5493f48586a973b7c6ce38be8f9a75f8 /mod
parent7a3d415267ebdb2880145e4df78f3a52a2c0082b (diff)
downloadvolse-hubzilla-053893b0673d15c255718e5328fbbdb9af29f715.tar.gz
volse-hubzilla-053893b0673d15c255718e5328fbbdb9af29f715.tar.bz2
volse-hubzilla-053893b0673d15c255718e5328fbbdb9af29f715.zip
some fixes to directory keyword searches
Diffstat (limited to 'mod')
-rw-r--r--mod/zfinger.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index 36c1cc493..9a2873df3 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -108,8 +108,10 @@ function zfinger_init(&$a) {
$k = explode(' ',$p[0]['keywords']);
if($k)
foreach($k as $kk)
- if(trim($kk))
- $tags[] = trim($kk);
+ if(trim($kk)) {
+ $tags[] = trim($kk," \t\n\r\0\x0B,");
+ }
+ }
if($tags)
$profile['keywords'] = $tags;
}