added validation of IP segments to make sure they aren't empty, e.g. 127.0..1
-Derek
diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index f558e91..fae188e 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -413,7 +413,7 @@
{
// 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;
}