From 3d4d5e43881c0fc4c39333d1f4bf72dcb6e15941 Mon Sep 17 00:00:00 2001 From: nate Date: Thu, 15 Jun 2006 14:44:16 +0000 Subject: [PATCH] Adding fix for Ticket #804 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3113 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/basics.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cake/basics.php b/cake/basics.php index 95ab141ce..54537b03b 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -548,6 +548,12 @@ * @return string */ function h($text) { + if (is_array($text)) { + foreach ($text as $key => $val) { + $text[$key] = h($val); + } + return $text; + } return htmlspecialchars($text); } /**