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

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Apr 17 23:40:27 GMT 2006


Author: jondaley
Date: 2006-04-17 23:40:26 +0000 (Mon, 17 Apr 2006)
New Revision: 3255

Modified:
   plog/trunk/class/data/validator/rules/emailformatrule.class.php
Log:
loosened address verification restrictions - had a guy on the forums who wanted an address whose username ended with a _  Silly.

Modified: plog/trunk/class/data/validator/rules/emailformatrule.class.php
===================================================================
--- plog/trunk/class/data/validator/rules/emailformatrule.class.php	2006-04-17 04:02:05 UTC (rev 3254)
+++ plog/trunk/class/data/validator/rules/emailformatrule.class.php	2006-04-17 23:40:26 UTC (rev 3255)
@@ -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-zA-Z0-9-_.+]+@[a-zA-Z0-9]+([-.]?[a-zA-Z0-9])+\.[a-zA-Z]{2,4}");
     define( "ERROR_RULE_EMAIL_FORMAT_WRONG", "error_rule_email_format_wrong");
 
     /**



More information about the pLog-svn mailing list