]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewcontacts.php
Merge pull request #1987 from annando/1510-manage-enhancements
[friendica.git] / mod / viewcontacts.php
index 19bf0415c7f86b5daece0b5696250452ee24f8d1..927a597524adaa7b17565aea86e629e75b4a1128 100644 (file)
@@ -48,7 +48,7 @@ function viewcontacts_content(&$a) {
                if($rr['self'])
                        continue;
 
-           $url = $rr['url'];
+               $url = $rr['url'];
 
                // route DFRN profiles through the redirect
 
@@ -63,8 +63,8 @@ function viewcontacts_content(&$a) {
                        'id' => $rr['id'],
                        'img_hover' => sprintf( t('Visit %s\'s profile [%s]'), $rr['name'], $rr['url']),
                        'thumb' => proxy_url($rr['thumb'], false, PROXY_SIZE_THUMB),
-                       'name' => substr($rr['name'],0,20),
-                       'username' => $rr['name'],
+                       'name' => htmlentities(substr($rr['name'],0,20)),
+                       'username' => htmlentities($rr['name']),
                        'url' => $url,
                        'sparkle' => '',
                        'itemurl' => $rr['url'],