One of my registered users can´t update his profile.
When clicking update the respons from UBBT 6.1 is this:<pre> The email address you provided has an invalid format. Make sure you're entering a valid email address (username@domain.com). A valid email address address is needed in order to mail your password. </pre>
The users email address, wich already has been verified upon regitration looks like this: <pre> username____@hotmail.com </pre>
My guess is that is it the "_" that is the problem. But what can I do about it, besides have him to change his email?
And if it is the "_" thats is the problem, how could the system accept the address in the first place?
That I'm not real sure about. The regex for this check was supplied by a user on threadsdev.com. It seems like the _ should be allowed for but I think it might be the multiple _ characters that's throwing it off. I'll need to actually work with this a bit to see what needs to be changed to allow this type of email address.
------------------- Rick Baker UBBThreads developer
It seems that even a single _ in an email address can cause it to break. The worst part about it is it doesn't give a specific error when changing your profile. Only "We Cannot Proceed"
Ok, depending on where you want to allow underscores you can just modify the regex to allow for them. This would change would allow for underscores in any location:
if (!eregi("^[0-9_a-z]([-_.+]?[0-9_a-z])*@[0-9_a-z]([-.]?[0-9_a-z])*\.[a-wyz][a-z](g|l|m|pa|t|u|v|z|fo)?$", $Email))
You'd also need to change changebasic.php as it has the same email address check. I'll get this into the standard code for 6.2.
------------------- Rick Baker UBBThreads developer