mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
adae18da2d
commit
7cc9b6e38f
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue