From e7957e14489ce8eb3b69ebede928dfe441a4924d Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Jul 2012 19:28:02 -0700 Subject: create fetch_tags function, make search work again, change logo --- include/text.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 59ef5a88f..aa377dd68 100644 --- a/include/text.php +++ b/include/text.php @@ -932,8 +932,8 @@ function prepare_body($item,$attach = false) { foreach($terms as $t) { if(strlen($x)) $x .= ','; - $x .= $t['term'] - . ((local_user() == $item['uid']) ? ' ' . t('[remove]') . '' : ''); + $x .= htmlspecialchars($t['term'],ENT_QUOTES,'UTF-8') + . ((local_user() == $item['uid']) ? ' ' . t('[remove]') . '' : ''); } if(strlen($x)) $s .= '
' . t('Categories:') . ' ' . $x . '
'; @@ -947,7 +947,8 @@ function prepare_body($item,$attach = false) { foreach($terms as $t) { if(strlen($x)) $x .= '   '; - $x .= $t['term'] . ' ' . t('[remove]') . ''; + $x .= htmlspecialchars($t['term'],ENT_QUOTES,'UTF-8') + . ' ' . t('[remove]') . ''; } if(strlen($x) && (local_user() == $item['uid'])) $s .= '
' . t('Filed under:') . ' ' . $x . '
'; @@ -1499,8 +1500,8 @@ function format_term_for_display($term) { elseif($term['type'] == TERM_MENTION) $s .= '@'; - if($term['url']) $s .= '' . $term['term'] . ''; - else $s .= $term['term']; + if($term['url']) $s .= '' . htmlspecialchars($term['term']) . ''; + else $s .= htmlspecialchars($term['term']); return $s; } -- cgit v1.2.3