From c71de2a420269330779cf558a112d6489f33c695 Mon Sep 17 00:00:00 2001 From: "Jehan-Guillaume (ioguix) de Rorthais" Date: Fri, 30 Dec 2011 17:54:53 +0100 Subject: [PATCH] Force UTF-8 while escaping html from decorators It was breaking multibytes chars. --- libraries/decorator.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/decorator.inc.php b/libraries/decorator.inc.php index 65311f6b2..8f3dc1550 100644 --- a/libraries/decorator.inc.php +++ b/libraries/decorator.inc.php @@ -63,7 +63,7 @@ function value(&$var, &$fields, $esc = null) { '<' => '<', '>' => '>' )); case 'html': - return htmlspecialchars($val); + return htmlentities($val, ENT_COMPAT, 'UTF-8'); case 'url': return urlencode($val); }