diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index ad7b0c5..41d77a9 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -230,10 +230,23 @@
 			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
 			{