summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2007-06-11 07:08:11 +0200
committerRick Ellis <rick.ellis@ellislab.com>2007-06-11 07:08:11 +0200
commita405117ece2113aa58dff481834abc6fe103a546 (patch)
tree587773aa56a41ea85637b709ef1e0b9d8fab1b84
parente666afc7eaf8c8224c4e6cf6f7e415966f22783e (diff)
-rw-r--r--system/libraries/Validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php
index 960053426..896cd39d7 100644
--- a/system/libraries/Validation.php
+++ b/system/libraries/Validation.php
@@ -490,7 +490,7 @@ class CI_Validation {
*/
function valid_ip($ip)
{
- return ( ! preg_match( "/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/", $ip)) ? FALSE : TRUE;
+ return $this->CI->valid_ip($ip);
}
// --------------------------------------------------------------------