summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2007-06-12 05:39:38 +0200
committerRick Ellis <rick.ellis@ellislab.com>2007-06-12 05:39:38 +0200
commitba648939ddc1ed86e36fa7cdf20d3d05401e4ffe (patch)
treeb2cabeef6b277d600781d507644af3cb8330f410
parenta608e18e055d287f99feb55cef7b3ed3c30cf63a (diff)
-rw-r--r--system/libraries/Input.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index e493f6d33..7b0282418 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -404,7 +404,7 @@ class CI_Input {
{
// 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;
}