summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r--system/libraries/Form_validation.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 37eb7a9cd..621316c4a 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1004,8 +1004,8 @@ class CI_Form_validation {
}
return (MB_ENABLED === TRUE)
- ? ($val <= mb_strlen($str))
- : ($val <= strlen($str));
+ ? (intval($val) <= mb_strlen($str))
+ : (intval($val) <= strlen($str));
}
// --------------------------------------------------------------------
@@ -1025,8 +1025,8 @@ class CI_Form_validation {
}
return (MB_ENABLED === TRUE)
- ? ($val >= mb_strlen($str))
- : ($val >= strlen($str));
+ ? (intval($val) >= mb_strlen($str))
+ : (intval($val) >= strlen($str));
}
// --------------------------------------------------------------------