diff options
author | friendica <info@friendica.com> | 2013-12-13 12:30:44 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-13 12:30:44 -0800 |
commit | 94975f8d3081051df48b6fdd73be3f4be5484cf6 (patch) | |
tree | d4bf63993b5a3f4a71ba946ffd1adf13b9c03a7f /include | |
parent | 1975fa50da5f418e293e0f018cf1ed2bf0f43930 (diff) | |
download | volse-hubzilla-94975f8d3081051df48b6fdd73be3f4be5484cf6.tar.gz volse-hubzilla-94975f8d3081051df48b6fdd73be3f4be5484cf6.tar.bz2 volse-hubzilla-94975f8d3081051df48b6fdd73be3f4be5484cf6.zip |
categories should already be html encoded - ensure this is the case but don't double encode
Diffstat (limited to 'include')
-rwxr-xr-x | include/text.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index 042a972d1..f808fb0a0 100755 --- a/include/text.php +++ b/include/text.php @@ -1095,7 +1095,7 @@ function format_categories(&$item,$writeable) { if($terms) { $categories = array(); foreach($terms as $t) { - $term = htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8') ; + $term = htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8',false) ; if(! trim($term)) continue; $removelink = (($writeable) ? z_root() . '/filerm/' . $item['id'] . '?f=&cat=' . urlencode($t['term']) : ''); @@ -1117,7 +1117,7 @@ function format_filer(&$item) { if($terms) { $categories = array(); foreach($terms as $t) { - $term = htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8') ; + $term = htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8',false) ; if(! trim($term)) continue; $removelink = z_root() . '/filerm/' . $item['id'] . '?f=&term=' . urlencode($t['term']); |