summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-24 05:04:10 +0200
committeradmin <devnull@localhost>2006-09-24 05:04:10 +0200
commit3c023b12c3d27f0e2773e671b854e52e2dc0d1d6 (patch)
treefa8f9c716ed8d81ddadcbcb6e64ffa0cc7adabbd /system
parent6bc014118c087c1c29ec0c1e509598218e3b5bc0 (diff)
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;
}
// --------------------------------------------------------------------