[Svn] r4023 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Thu Sep 30 11:11:33 CEST 2010


Author: alec
Date: 2010-09-30 04:11:33 -0500 (Thu, 30 Sep 2010)
New Revision: 4023

Modified:
   trunk/roundcubemail/program/steps/mail/func.inc
Log:
- Improve a little email address pattern, broken with IDNA support implementation


Modified: trunk/roundcubemail/program/steps/mail/func.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/func.inc	2010-09-30 08:30:46 UTC (rev 4022)
+++ trunk/roundcubemail/program/steps/mail/func.inc	2010-09-30 09:11:33 UTC (rev 4023)
@@ -26,7 +26,7 @@
 
 // Simplified for IDN in Unicode
 //$EMAIL_ADDRESS_PATTERN = '([a-z0-9][a-z0-9\-\.\+\_]*@[a-z0-9][a-z0-9\-\.]*\\.[a-z]{2,5})';
-$EMAIL_ADDRESS_PATTERN = '([a-z0-9][a-z0-9\-\.\+\_]*@[^.].*\\.[a-z]{2,5})';
+$EMAIL_ADDRESS_PATTERN = '([a-z0-9][a-z0-9\-\.\+\_]*@[^&@"\'.][^@&"\']*\\.[a-z]{2,5})';
 
 // actions that do not require imap connection here
 $NOIMAP_ACTIONS = array('addcontact', 'autocomplete', 'upload', 'display-attachment', 'remove-attachment', 'get');

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list