updating Upload features and use of security library
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 5ff4782..ac9323c 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -454,6 +454,11 @@
 	 */	
 	function set_allowed_types($types)
 	{
+		if ( ! is_array($types) && $types == '*')
+		{
+			$this->allowed_types = '*';
+			return;
+		}
 		$this->allowed_types = explode('|', $types);
 	}
 	
@@ -551,6 +556,11 @@
 	 */	
 	function is_allowed_filetype()
 	{
+		if ($this->allowed_types == '*')
+		{
+			return TRUE;
+		}
+		
 		if (count($this->allowed_types) == 0 OR ! is_array($this->allowed_types))
 		{
 			$this->set_error('upload_no_file_types');
@@ -805,7 +815,7 @@
 		}
 
 		$CI =& get_instance();	
-		$data = $CI->input->xss_clean($data);
+		$data = $CI->security->xss_clean($data);
 		
 		flock($fp, LOCK_EX);
 		fwrite($fp, $data);