From e01e95dc501a0b05f6f73725bd4f7d67cf9b2990 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sat, 30 May 2009 11:31:13 -0400 Subject: [PATCH] call htmlspecialchars, not htmlentities --- framework/View/lib/Horde/View/Helper/Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/View/lib/Horde/View/Helper/Text.php b/framework/View/lib/Horde/View/Helper/Text.php index 1d97c28a3..6b308b4f9 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, $this->_view->getEncoding()); + return htmlspecialchars($var, ENT_QUOTES, $this->_view->getEncoding()); } /** -- 2.11.0