mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +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
|
||||
*/
|
||||
function h($text) {
|
||||
if (is_array($text)) {
|
||||
foreach ($text as $key => $val) {
|
||||
$text[$key] = h($val);
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
return htmlspecialchars($text);
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue