diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-07-31 08:01:34 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-07-31 08:01:34 +0000 |
commit | bb19e0bb45ef948138e2d86867375bde8d4aeb70 (patch) | |
tree | b0bb3daa1b92cd3a55a430eb5ffc33ea54459b2e /modules/user/user.module | |
parent | 12bc70569e7035c8409e08f766c2f8e5044c7b13 (diff) | |
download | brdo-bb19e0bb45ef948138e2d86867375bde8d4aeb70.tar.gz brdo-bb19e0bb45ef948138e2d86867375bde8d4aeb70.tar.bz2 |
- fixing email regular expression.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 016d43743..46ea845b9 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -187,7 +187,7 @@ function user_validate_mail($mail) { ** allowed. */ - if ($mail && !eregi("^[_+\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $mail)) { + if ($mail && !eregi("^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$")) { return t("The e-mail address '$mail' is not valid."); } } |