diff options
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 f558e91e4..fae188e3c 100644 --- a/system/libraries/Input.php +++ b/system/libraries/Input.php @@ -413,7 +413,7 @@ class CI_Input { {
// IP segments must be digits and can not be
// longer than 3 digits or greater then 255
- if (preg_match("/[^0-9]/", $segment) OR $segment > 255 OR strlen($segment) > 3)
+ if ($segment == '' OR preg_match("/[^0-9]/", $segment) OR $segment > 255 OR strlen($segment) > 3)
{
return FALSE;
}
|