Skip to content

Commit

Permalink
Force UTF-8 while escaping html from decorators
Browse files Browse the repository at this point in the history
It was breaking multibytes chars.
  • Loading branch information
ioguix committed Dec 30, 2011
1 parent 33f1434 commit c71de2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/decorator.inc.php
Expand Up @@ -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);
}
Expand Down

0 comments on commit c71de2a

Please sign in to comment.