diff options
author | Ivan Tcholakov <ivantcholakov@gmail.com> | 2014-08-25 11:19:11 +0200 |
---|---|---|
committer | Ivan Tcholakov <ivantcholakov@gmail.com> | 2014-08-25 11:19:11 +0200 |
commit | e7f55bf4afccbfa65bca16be63d6987ef3224431 (patch) | |
tree | e94fc728547e180a5346392ed19781dc96ea19a8 /system | |
parent | 993f98c09c80ebad3328b7aa4182a941174d1d4a (diff) |
Upgrading the function html_escape() - readability improvement.
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Common.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index 74864ec56..93f0f0a99 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -701,7 +701,9 @@ if ( ! function_exists('html_escape')) $double_encode = (bool) $double_encode; return is_array($var) - ? ($double_encode === FALSE ? array_map('html_escape', $var, array_fill(0, count($var), FALSE)) : array_map('html_escape', $var)) + ? ($double_encode === FALSE + ? array_map('html_escape', $var, array_fill(0, count($var), FALSE)) + : array_map('html_escape', $var)) : htmlspecialchars($var, ENT_QUOTES, config_item('charset'), $double_encode); } } |