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); } /**