From: Chuck Hagenbuch Date: Sat, 30 May 2009 15:34:02 +0000 (-0400) Subject: PHP's don't-double-encode implementation leaves invalid entities X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=20110aa727e40268795916f008dcd4f856ef1f41;p=horde.git PHP's don't-double-encode implementation leaves invalid entities --- diff --git a/framework/View/lib/Horde/View/Helper/Tag.php b/framework/View/lib/Horde/View/Helper/Tag.php index 663e9eba3..7365286bd 100644 --- a/framework/View/lib/Horde/View/Helper/Tag.php +++ b/framework/View/lib/Horde/View/Helper/Tag.php @@ -112,11 +112,7 @@ class Horde_View_Helper_Tag extends Horde_View_Helper_Base */ public function escapeOnce($html) { - if (version_compare(PHP_VERSION, '5.2.3', '>=')) { - return htmlspecialchars($html, ENT_QUOTES, $this->_view->getEncoding(), false); - } else { - return $this->_fixDoubleEscape($this->_view->escape($html)); - } + return $this->_fixDoubleEscape($this->escape($html)); } /**