aboutsummaryrefslogtreecommitdiffstats
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
parent7a3d415267ebdb2880145e4df78f3a52a2c0082b (diff)
downloadvolse-hubzilla-053893b0673d15c255718e5328fbbdb9af29f715.tar.gz
volse-hubzilla-053893b0673d15c255718e5328fbbdb9af29f715.tar.bz2
volse-hubzilla-053893b0673d15c255718e5328fbbdb9af29f715.zip
some fixes to directory keyword searches
-rw-r--r--include/zot.php2
-rw-r--r--mod/zfinger.php6
2 files changed, 5 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php
index a690d8346..53031a6c5 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1383,8 +1383,8 @@ function import_directory_profile($hash,$profile) {
foreach($profile['keywords'] as $kw) {
$kw = trim(htmlentities($kw,ENT_COMPAT,'UTF-8',false));
$kw = trim($kw,',');
+ $clean[] = $kw;
}
- $clean[] = $kw;
}
$arr['xprof_keywords'] = implode(' ',$clean);
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;
}