From f4b09d620f07c5ee78613a567f4c6d45a91c70b9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 15 May 2009 07:35:58 +0000 Subject: [PATCH] "allow one-letter name/mailbox part in an email address" --- etemplate/inc/class.url_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.url_widget.inc.php b/etemplate/inc/class.url_widget.inc.php index 02854bf693..cb75e62ef2 100644 --- a/etemplate/inc/class.url_widget.inc.php +++ b/etemplate/inc/class.url_widget.inc.php @@ -61,7 +61,7 @@ class url_widget * * has to be used case insensitive: /i */ - const EMAIL_PREG = '[a-z0-9][a-z0-9._-]*[a-z0-9]@(([a-z0-9]*[a-z0-9]\.)|([a-z0-9][a-z0-9_-]*[a-z0-9]\.))+[a-z0-9][a-z0-9_-]*[a-z0-9]'; + const EMAIL_PREG = '([a-z0-9][a-z0-9._-]*)?[a-z0-9]@(([a-z0-9]*[a-z0-9]\.)|([a-z0-9][a-z0-9_-]*[a-z0-9]\.))+[a-z0-9][a-z0-9_-]*[a-z0-9]'; /** * pre-processing of the extension