Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Force UTF-8 while escaping html from decorators

It was breaking multibytes chars.
  • Loading branch information...
commit c71de2a420269330779cf558a112d6489f33c695 1 parent 33f1434
Jehan-Guillaume (ioguix) de Rorthais ioguix authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  libraries/decorator.inc.php
2  libraries/decorator.inc.php
View
@@ -63,7 +63,7 @@ function value(&$var, &$fields, $esc = null) {
'<' => '&lt;', '>' => '&gt;'
));
case 'html':
- return htmlspecialchars($val);
+ return htmlentities($val, ENT_COMPAT, 'UTF-8');
case 'url':
return urlencode($val);
}
Please sign in to comment.
Something went wrong with that request. Please try again.