commit | d2ea460f138fd1f9a527c9b0ece7cce369fd430b | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Fri Oct 30 11:47:35 2015 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Fri Oct 30 11:47:35 2015 +0200 |
tree | b65894caf8cd3f1d944342d0dc4bd1e7d533e730 | |
parent | b2d2535cc0326acea4722f7be9819cf58fd155da [diff] [blame] |
Fix #3201
diff --git a/system/core/Common.php b/system/core/Common.php index ad3ca9f..3ab98cf 100644 --- a/system/core/Common.php +++ b/system/core/Common.php
@@ -752,7 +752,12 @@ 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);