[pLog-svn] r2886 - plog/trunk/class/data/validator/rules

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Thu Feb 2 12:52:04 GMT 2006


Author: jondaley
Date: 2006-02-02 12:52:03 +0000 (Thu, 02 Feb 2006)
New Revision: 2886

Modified:
   plog/trunk/class/data/validator/rules/emailformatrule.class.php
Log:
allow + signs in email addresses.  Also removed unnecessary escapes, and _ aren't allowed in domain names either

Modified: plog/trunk/class/data/validator/rules/emailformatrule.class.php
===================================================================
--- plog/trunk/class/data/validator/rules/emailformatrule.class.php	2006-02-01 20:30:08 UTC (rev 2885)
+++ plog/trunk/class/data/validator/rules/emailformatrule.class.php	2006-02-02 12:52:03 UTC (rev 2886)
@@ -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