From 001e25623f7dc53e38999adce07188088ac6e032 Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Wed, 13 Jun 2007 22:01:30 +0000 Subject: --- system/libraries/Validation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'system') diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php index 896cd39d7..6b6ec0c68 100644 --- a/system/libraries/Validation.php +++ b/system/libraries/Validation.php @@ -419,7 +419,7 @@ class CI_Validation { */ function min_length($str, $val) { - if ( ! is_numeric($val)) + if (preg_match("/[^0-9]/", $val)) { return FALSE; } @@ -438,7 +438,7 @@ class CI_Validation { */ function max_length($str, $val) { - if ( ! is_numeric($val)) + if (preg_match("/[^0-9]/", $val)) { return FALSE; } @@ -457,7 +457,7 @@ class CI_Validation { */ function exact_length($str, $val) { - if ( ! is_numeric($val)) + if (preg_match("/[^0-9]/", $val)) { return FALSE; } -- cgit v1.2.3-24-g4f1b