diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index e493f6d..7b02824 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -404,7 +404,7 @@
 		{

 			// IP segments must be digits and can not be 

 			// longer than 3 digits or greater then 255

-			if ( ! ctype_digit($segment) OR $segment > 255 OR strlen($segment) > 3)

+			if (preg_match("/[^0-9]/", $segment) OR $segment > 255 OR strlen($segment) > 3)

 			{

 				return FALSE;

 			}