[pLog-svn] r3521 - plog/branches/lifetype-1.0.5/class/data/validator/rules

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sat Jun 3 22:28:14 GMT 2006


Author: oscar
Date: 2006-06-03 22:28:13 +0000 (Sat, 03 Jun 2006)
New Revision: 3521

Modified:
   plog/branches/lifetype-1.0.5/class/data/validator/rules/uintrule.class.php
Log:
somehow this rule was allowing funny strings with numbers and characters, while the new regexp seems to work fine


Modified: plog/branches/lifetype-1.0.5/class/data/validator/rules/uintrule.class.php
===================================================================
--- plog/branches/lifetype-1.0.5/class/data/validator/rules/uintrule.class.php	2006-06-03 20:34:44 UTC (rev 3520)
+++ plog/branches/lifetype-1.0.5/class/data/validator/rules/uintrule.class.php	2006-06-03 22:28:13 UTC (rev 3521)
@@ -2,7 +2,7 @@
 
     include_once(PLOG_CLASS_PATH."class/data/validator/rules/regexprule.class.php");
 
-    define( "UINT_RULE_REG_EXP", "^([1-9][0-9]*)|0$");
+    define( "UINT_RULE_REG_EXP", "^([0-9]+)$");
     define( "ERROR_RULE_UINT_FORMAT_WRONG", "error_rule_uint_format_wrong");
 
     /**



More information about the pLog-svn mailing list