diff options
author | admin <devnull@localhost> | 2006-09-24 05:04:10 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-24 05:04:10 +0200 |
commit | 3c023b12c3d27f0e2773e671b854e52e2dc0d1d6 (patch) | |
tree | fa8f9c716ed8d81ddadcbcb6e64ffa0cc7adabbd /system/libraries | |
parent | 6bc014118c087c1c29ec0c1e509598218e3b5bc0 (diff) |
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Validation.php | 2 |
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; } // -------------------------------------------------------------------- |