From: Chuck Hagenbuch Date: Sat, 30 May 2009 15:30:01 +0000 (-0400) Subject: use the view's encoding when calling htmlentities X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b1d6bd2a133293cd32acce4d5b41f04f83e8b20b;p=horde.git use the view's encoding when calling htmlentities --- diff --git a/framework/View/lib/Horde/View/Helper/Text.php b/framework/View/lib/Horde/View/Helper/Text.php index 435258dfb..1d97c28a3 100644 --- a/framework/View/lib/Horde/View/Helper/Text.php +++ b/framework/View/lib/Horde/View/Helper/Text.php @@ -47,7 +47,7 @@ class Horde_View_Helper_Text extends Horde_View_Helper_Base */ public function h($var) { - return htmlentities($var, ENT_QUOTES, 'utf-8'); + return htmlentities($var, ENT_QUOTES, $this->_view->getEncoding()); } /**