summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php
index f9b51d778..153657e31 100644
--- a/system/libraries/Validation.php
+++ b/system/libraries/Validation.php
@@ -524,7 +524,7 @@ class CI_Validation {
*/
function numeric($str)
{
- return ( ! ereg("^[0-9]+$", $str)) ? FALSE : TRUE;
+ return ( ! ereg("^[0-9\.]+$", $str)) ? FALSE : TRUE;
}
// --------------------------------------------------------------------