I have a user who tries to register with an email adddress like [email protected]. vBulletin won't accept this. Says it's an invalid email address. I did some testing and found that it won't accept any email address with a .computer top domain. I don't have that or anything like it blocked in the user banning options. Is this a known issue or is there some setting I should be looking at? Thanks in advance for any insight.
User can't register with .computer email domain
Collapse
X
-
User can't register with .computer email domain
Tags: None -
-
I have a user who tries to register with an email adddress like [email protected]. vBulletin won't accept this. Says it's an invalid email address. I did some testing and found that it won't accept any email address with a .computer top domain. I don't have that or anything like it blocked in the user banning options. Is this a known issue or is there some setting I should be looking at? Thanks in advance for any insight.
Here is the code we use to check email:
Code:// ############################################################################# /** * Tests a string to see if it's a valid email address * * [USER="221338"]Param[/USER] string Email address * * [USER="147035"]return[/USER] boolean */ function is_valid_email($email) { // checks for a valid email format return preg_match('#^[a-z0-9.!\#$%&\'*+\-/=?^_`{|}~]+@([0-9.]+|([^\s\'"<>@,;]+\.+[a-z]{2,24}))$#si', $email); }
Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 APIComment
-
Interesting. It is a valid email address as I can communicate with the user with it. The error the user gets and that I get when trying to create a user with .computer domain is "You entered an invalid email address." so it looks like that function is picking it up as invalid somehow. I'll look more into it.Comment
-
Create their account in the AdminCP. Strangely enough, vBulletin 4.X doesn't even require an email created that way.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 APIComment
-
Yup. I'm trying to create it in admincp and get that error. I tried to create random users using @[whatever].computer Still scratching head but will dig deeper. It's not critical, they guy had a gmail account that worked, but I'm still curious.Comment
-
-
I recall a bug/issue in an older version of VB that was addressed when the new TLDs started getting used years back- what version of 4.x are you using?
I was also able to create a user with the .computer TLD in 4.2.5, it is possible some sort of anti-spam 3rd party add-on could be causing the issue.Comment
-
Hi Joe. We're on 4.22 patch level 4 - KimComment
-
I too remember Paul talking about this at some point in the past, relating to the length of the TLD.
It was fixed at some point - I tried it in 4.2.3 and it worked, so if you are on 4.2.2 and it doesn't, I;d suggest upgrading just to 4.2.3 at this point.MARK.B
vBulletin Support
------------
My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
My Unofficial vBulletin Cloud Demo: https://www.adminammo.comComment
-
If you can't upgrade immediately, you might be able to modify the regex in the is_valid_email function(). The function is in /includes/functions.php.Last edited by Wayne Luke; Fri 26 Jan '18, 12:08pm.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 APIComment
-
Here is the relevant code as it is in 4.2.3:
PHP Code:function is_valid_email($email)
{
// checks for a valid email format
return preg_match('#^[a-z0-9.!\#$%&\'*+\-/=?^_`{|}~]+@([0-9.]+|([^\s\'"<>@,;]+\.+[a-z]{2,63}))$#si', $email);
}
MARK.B
vBulletin Support
------------
My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
My Unofficial vBulletin Cloud Demo: https://www.adminammo.comComment
Related Topics
Collapse
-
by JGRnavaWith an email address in the registration setting that I uploaded a copy of below, no email is received at the address entered. I have tested this several times. I am using moderation of new users. The...1 Photo
-
Channel: vB Cloud Support & Troubleshooting.
-
Comment