removed some ereg() calls for better performance
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 42d02d9..3832dab 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -398,7 +398,7 @@
 	 */	

 	function set_max_filesize($n)

 	{

-		$this->max_size = ( ! eregi("^[[:digit:]]+$", $n)) ? 0 : $n;

+		$this->max_size = ((int) $n < 0) ? 0: (int) $n;

 	}

 	

 	// --------------------------------------------------------------------

@@ -412,7 +412,7 @@
 	 */	

 	function set_max_filename($n)

 	{

-		$this->max_filename = ( ! eregi("^[[:digit:]]+$", $n)) ? 0 : $n;

+		$this->max_filename = ((int) $n < 0) ? 0: (int) $n;

 	}

 

 	// --------------------------------------------------------------------

@@ -426,7 +426,7 @@
 	 */	

 	function set_max_width($n)

 	{

-		$this->max_width = ( ! eregi("^[[:digit:]]+$", $n)) ? 0 : $n;

+		$this->max_width = ((int) $n < 0) ? 0: (int) $n;

 	}

 	

 	// --------------------------------------------------------------------

@@ -440,7 +440,7 @@
 	 */	

 	function set_max_height($n)

 	{

-		$this->max_height = ( ! eregi("^[[:digit:]]+$", $n)) ? 0 : $n;

+		$this->max_height = ((int) $n < 0) ? 0: (int) $n;

 	}

 	

 	// --------------------------------------------------------------------