summaryrefslogtreecommitdiffstats
path: root/system/helpers/cookie_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-12-14 12:23:06 +0100
committerAndrey Andreev <narf@devilix.net>2016-12-14 12:23:06 +0100
commit4e0c208f24b0755c47905e17b82854c538a0c530 (patch)
tree4ab8c90fa0e17a8eb835370d14a11ce36bf4e700 /system/helpers/cookie_helper.php
parent8e37b8560c75d3994e59f401be977dcf386bb210 (diff)
Remove 'global_xss_filtering' config setting
Diffstat (limited to 'system/helpers/cookie_helper.php')
-rw-r--r--system/helpers/cookie_helper.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/helpers/cookie_helper.php b/system/helpers/cookie_helper.php
index ca4324495..f8943fde3 100644
--- a/system/helpers/cookie_helper.php
+++ b/system/helpers/cookie_helper.php
@@ -85,9 +85,8 @@ if ( ! function_exists('get_cookie'))
* @param bool
* @return mixed
*/
- function get_cookie($index, $xss_clean = NULL)
+ function get_cookie($index, $xss_clean = FALSE)
{
- is_bool($xss_clean) OR $xss_clean = (config_item('global_xss_filtering') === TRUE);
$prefix = isset($_COOKIE[$index]) ? '' : config_item('cookie_prefix');
return get_instance()->input->cookie($prefix.$index, $xss_clean);
}