categories should already be html encoded - ensure this is the case but don't double encode
This commit is contained in:
parent
1975fa50da
commit
94975f8d30
@ -1095,7 +1095,7 @@ function format_categories(&$item,$writeable) {
|
|||||||
if($terms) {
|
if($terms) {
|
||||||
$categories = array();
|
$categories = array();
|
||||||
foreach($terms as $t) {
|
foreach($terms as $t) {
|
||||||
$term = htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8') ;
|
$term = htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8',false) ;
|
||||||
if(! trim($term))
|
if(! trim($term))
|
||||||
continue;
|
continue;
|
||||||
$removelink = (($writeable) ? z_root() . '/filerm/' . $item['id'] . '?f=&cat=' . urlencode($t['term']) : '');
|
$removelink = (($writeable) ? z_root() . '/filerm/' . $item['id'] . '?f=&cat=' . urlencode($t['term']) : '');
|
||||||
@ -1117,7 +1117,7 @@ function format_filer(&$item) {
|
|||||||
if($terms) {
|
if($terms) {
|
||||||
$categories = array();
|
$categories = array();
|
||||||
foreach($terms as $t) {
|
foreach($terms as $t) {
|
||||||
$term = htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8') ;
|
$term = htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8',false) ;
|
||||||
if(! trim($term))
|
if(! trim($term))
|
||||||
continue;
|
continue;
|
||||||
$removelink = z_root() . '/filerm/' . $item['id'] . '?f=&term=' . urlencode($t['term']);
|
$removelink = z_root() . '/filerm/' . $item['id'] . '?f=&term=' . urlencode($t['term']);
|
||||||
|
Reference in New Issue
Block a user