summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-10-30 10:47:35 +0100
committerAndrey Andreev <narf@devilix.net>2015-10-30 10:47:35 +0100
commitd2ea460f138fd1f9a527c9b0ece7cce369fd430b (patch)
treeb65894caf8cd3f1d944342d0dc4bd1e7d533e730 /system/core
parentb2d2535cc0326acea4722f7be9819cf58fd155da (diff)
Fix #3201
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Common.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index ad3ca9f93..3ab98cf6d 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -752,7 +752,12 @@ if ( ! function_exists('html_escape'))
if (is_array($var))
{
- return array_map('html_escape', $var, array_fill(0, count($var), $double_encode));
+ foreach (array_keys($var) as $key)
+ {
+ $var[$key] = html_escape($var[$key], $double_encode);
+ }
+
+ return $var;
}
return htmlspecialchars($var, ENT_QUOTES, config_item('charset'), $double_encode);