aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}