From 8fa50d9100869273a7206088bc40a36300950caa Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 25 Mar 2007 01:16:29 +0000 Subject: [PATCH] Adding fix for Ticket #2285 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4671 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/view/helper.php b/cake/libs/view/helper.php index ca5d8248a..e9938c49b 100644 --- a/cake/libs/view/helper.php +++ b/cake/libs/view/helper.php @@ -283,7 +283,7 @@ class Helper extends Overloadable { $attribute = sprintf($attributeFormat, $key, $key); } } else { - $attribute = sprintf($attributeFormat, $key, htmlspecialchars($value)); + $attribute = sprintf($attributeFormat, $key, h($value)); } return $attribute; } @@ -457,7 +457,7 @@ class Helper extends Overloadable { $result = null; if (isset($this->data[$this->model()][$this->field()])) { - $result = h($this->data[$this->model()][$this->field()]); + $result = $this->data[$this->model()][$this->field()]; } elseif (isset($this->data[$this->field()]) && is_array($this->data[$this->field()])) { if (ClassRegistry::isKeySet($this->field())) { $key =& ClassRegistry::getObject($this->field());