mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Adding fix for Ticket #804
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3113 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e0edd33ebd
commit
3d4d5e4388
1 changed files with 6 additions and 0 deletions
|
@ -548,6 +548,12 @@
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function h($text) {
|
function h($text) {
|
||||||
|
if (is_array($text)) {
|
||||||
|
foreach ($text as $key => $val) {
|
||||||
|
$text[$key] = h($val);
|
||||||
|
}
|
||||||
|
return $text;
|
||||||
|
}
|
||||||
return htmlspecialchars($text);
|
return htmlspecialchars($text);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue