diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2007-06-12 05:39:38 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2007-06-12 05:39:38 +0200 |
commit | ba648939ddc1ed86e36fa7cdf20d3d05401e4ffe (patch) | |
tree | b2cabeef6b277d600781d507644af3cb8330f410 /system/libraries/Input.php | |
parent | a608e18e055d287f99feb55cef7b3ed3c30cf63a (diff) |
Diffstat (limited to 'system/libraries/Input.php')
-rw-r--r-- | system/libraries/Input.php | 2 |
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;
}
|