summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-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;
}