summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-03 18:41:54 +0200
committeradmin <devnull@localhost>2006-10-03 18:41:54 +0200
commit2fcd16b467436a13c8a84a4add4e8d113fe1be02 (patch)
tree6c7c26ec4845fca2a44a6a20650674b07608b058 /system/libraries
parentc6ffb5dab43cb1438c3a8b2083833a0e308cab52 (diff)
Diffstat (limited to 'system/libraries')
-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
{