commit | ba648939ddc1ed86e36fa7cdf20d3d05401e4ffe | [log] [tgz] |
---|---|---|
author | Rick Ellis <rick.ellis@ellislab.com> | Tue Jun 12 03:39:38 2007 +0000 |
committer | Rick Ellis <rick.ellis@ellislab.com> | Tue Jun 12 03:39:38 2007 +0000 |
tree | b2cabeef6b277d600781d507644af3cb8330f410 | |
parent | a608e18e055d287f99feb55cef7b3ed3c30cf63a [diff] |
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; }