summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Input.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index ad7b0c571..41d77a97a 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -230,10 +230,23 @@ class CI_Input {
return FALSE;
}
else
- {
+ {
if ($xss_clean === TRUE)
{
- return $this->xss_clean($_COOKIE[$index]);
+ if (is_array($_COOKIE[$index]))
+ {
+ $cookie = array();
+ foreach($_COOKIE[$index] as $key => $val)
+ {
+ $cookie[$key] = $this->xss_clean($val);
+ }
+
+ return $cookie;
+ }
+ else
+ {
+ return $this->xss_clean($_COOKIE[$index]);
+ }
}
else
{