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