[pLog-svn] r2970 - plog/branches/lifetype-1.0.4/class/data/validator/rules

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Feb 18 21:54:06 GMT 2006


Author: jondaley
Date: 2006-02-18 21:54:05 +0000 (Sat, 18 Feb 2006)
New Revision: 2970

Modified:
   plog/branches/lifetype-1.0.4/class/data/validator/rules/emailformatrule.class.php
Log:
fix email addresses to allow + in userid. don't allow _ in domains -- not in RFC spec.  cleanup regexp a bit.

Modified: plog/branches/lifetype-1.0.4/class/data/validator/rules/emailformatrule.class.php
===================================================================
--- plog/branches/lifetype-1.0.4/class/data/validator/rules/emailformatrule.class.php	2006-02-18 03:45:32 UTC (rev 2969)
+++ plog/branches/lifetype-1.0.4/class/data/validator/rules/emailformatrule.class.php	2006-02-18 21:54:05 UTC (rev 2970)
@@ -2,7 +2,7 @@
 
     include_once(PLOG_CLASS_PATH."class/data/validator/rules/regexprule.class.php");
 
-    define( "EMAIL_FORMAT_RULE_REG_EXP", "^[a-z0-9]*([-_\.]?[a-z0-9])+@[a-z0-9]+([-_\.]?[a-z0-9])+\.[a-z]{2,4}");
+    define( "EMAIL_FORMAT_RULE_REG_EXP", "^[a-z0-9]*([-_.+]?[a-z0-9])+@[a-z0-9]+([-.]?[a-z0-9])+\.[a-z]{2,4}");
     define( "ERROR_RULE_EMAIL_FORMAT_WRONG", "error_rule_email_format_wrong");
 
     /**



More information about the pLog-svn mailing list