aboutsummaryrefslogtreecommitdiffstats
path: root/include/taxonomy.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-12 02:15:02 -0800
committerfriendica <info@friendica.com>2013-12-12 02:15:02 -0800
commit303324cdff3f7c8bc83fae89256a2133939944b2 (patch)
treef6065af47bd6eaf35a8c220f5c082fec0fd49517 /include/taxonomy.php
parent941f81eb300074b203dd480924f9cf8b9d41a08d (diff)
downloadvolse-hubzilla-303324cdff3f7c8bc83fae89256a2133939944b2.tar.gz
volse-hubzilla-303324cdff3f7c8bc83fae89256a2133939944b2.tar.bz2
volse-hubzilla-303324cdff3f7c8bc83fae89256a2133939944b2.zip
more htmlspecialchars sanitisation
Diffstat (limited to 'include/taxonomy.php')
-rw-r--r--include/taxonomy.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php
index 5159dad02..65d082bb0 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -87,9 +87,9 @@ function format_term_for_display($term) {
return $s;
if($term['url'])
- $s .= '<a href="' . $term['url'] . '">' . htmlspecialchars($term['term']) . '</a>';
+ $s .= '<a href="' . $term['url'] . '">' . htmlspecialchars($term['term'], ENT_COMPAT,'UTF-8') . '</a>';
else
- $s .= htmlspecialchars($term['term']);
+ $s .= htmlspecialchars($term['term'], ENT_COMPAT,'UTF-8');
return $s;
}