No user with a .NAME domain in their email address seems to be able to
register as a new user (eg anne@smith.name). Is there some email validation
php code that can be modified ? Users with .com, .info all regsiter OK but not
.NAME.
Can anyone help?
Thanks, Phil
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
No user with a .NAME domain in their email address seems to be able to
register as a new user (eg anne@smith.name). Is there some email validation
php code that can be modified ? Users with .com, .info all regsiter OK but not
.NAME.
Can anyone help?
Thanks, Phil
If you look into register.php file, you'll find a block (around line 100) like
this:
else if (!eregi("^((?)@(?)\.(fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)$",
$EMAIL))
{
$Error = L_ERR_USR_8;
}
The first line is the condition that check the domain extension.
You might want to change that first line to this new one:
else if (!eregi("^((?)@(?)\.(avel|bi|bs|fo|g|ia|l|m|me|mes|o|op|pa|ro|seum|
t|to|u|v|z)?)$", $EMAIL))
This will accept all the generic top-level domains listed here:
PS: you should do the same in the file edituser.php (around line 84), for
profile updates.
Let us know how it worked!
Ciprian M.
: http://en.wikipedia.org/wiki/Template:Generic_top-
level_domains
Follow-up: You also want to modify the same condition in these files:
handleinputH.php
input.php
passreset.php
lib/commands/topic.php
lib/commands/away.php
Sorry for the inconvenience.
Ciprian M.
You said it works now, but, by mistake, I erased your post.
I answered: Great, another nice fix thanks to you :)
All the best. Ciprian M.