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