summaryrefslogtreecommitdiffstats
path: root/system/libraries/Validation.php
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2007-06-14 00:01:30 +0200
committerRick Ellis <rick.ellis@ellislab.com>2007-06-14 00:01:30 +0200
commit001e25623f7dc53e38999adce07188088ac6e032 (patch)
tree235f20e274010e8bb7388ffb207751cc8275dd86 /system/libraries/Validation.php
parent47ea4af68c1e33645a2e04b1526e99bd8b50c982 (diff)
Diffstat (limited to 'system/libraries/Validation.php')
-rw-r--r--system/libraries/Validation.php6
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;
}