Adding fix for Ticket #1712

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4044 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-12-01 17:10:53 +00:00
parent adae18da2d
commit 7cc9b6e38f

View file

@ -657,10 +657,7 @@
*/
function h($text) {
if (is_array($text)) {
foreach ($text as $key => $val) {
$text[$key] = h($val);
}
return $text;
return array_map('h', $text);
}
return htmlspecialchars($text);
}