diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2007-06-14 00:01:30 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2007-06-14 00:01:30 +0200 |
commit | 001e25623f7dc53e38999adce07188088ac6e032 (patch) | |
tree | 235f20e274010e8bb7388ffb207751cc8275dd86 /system/libraries | |
parent | 47ea4af68c1e33645a2e04b1526e99bd8b50c982 (diff) |
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Validation.php | 6 |
1 files changed, 3 insertions, 3 deletions
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;
}
|