Previous Thread
Next Thread
Print Thread
Hop To
#33484 09/26/2002 3:39 AM
Anonymous
Unregistered
Anonymous
Unregistered
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?

#33485 09/26/2002 8:58 AM
Anonymous
Unregistered
Anonymous
Unregistered
Did you recently disallow 'special characters' in usernames? I suspect that the same test may be applied to email addresses...

Regards,

Brett Harris
Infopop Corporation

#33486 09/26/2002 10:21 AM
Anonymous
Unregistered
Anonymous
Unregistered
6.1 does strict syntax checking on email addresses. See line 161 in changebasic.php.

You would either have to modify that code, or manually change the email address in the database.

#33487 09/27/2002 3:18 AM
Anonymous
Unregistered
Anonymous
Unregistered
I´ve had disallow 'special characters' in usernames since I started the forum. So he shopudlnt have been able to register at all with that adress?

Here´s line 161:
<pre> if (!eregi("^[0-9a-z]([-_.+]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\.[a-wyz][a-z](g|l|m|pa|t|u|v|z|fo)?$", $Email)) {
$html -> not_right($ubbt_lang['BAD_FORMAT'],$Cat);
} </pre>

Can I just ad "_" by putting [_] between, let´s say, [a-wyz] and [a-z]?

/G

#33488 09/27/2002 2:17 AM
Anonymous
Unregistered
Anonymous
Unregistered
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

#33489 09/30/2002 4:15 AM
Anonymous
Unregistered
Anonymous
Unregistered
Ok... I´ll wait! <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

#33490 10/01/2002 10:53 AM
Anonymous
Unregistered
Anonymous
Unregistered
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"

#33491 10/19/2002 5:57 AM
Anonymous
Unregistered
Anonymous
Unregistered
So.... has anything happend regarding this topic?

I still need a fix for it!

#33492 10/19/2002 11:31 AM
Anonymous
Unregistered
Anonymous
Unregistered
Not that I am aware of - I will forward this thread to Rick and see if/when he may have work for it slated.

Regards,

Brett Harris
Infopop Corporation

#33493 10/20/2002 1:12 AM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
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

#33494 11/05/2002 1:43 PM
Anonymous
Unregistered
Anonymous
Unregistered
This only appears to allow a single _ - what if a user has multiple in their id?

#33495 11/06/2002 2:24 AM
Anonymous
Unregistered
Anonymous
Unregistered
See my bug report about the email validation for a bit more standards compliant regexp. It allows for multiple consecutive underscores.

No-one has yet commented on the bug report though which is a bit strange since it was filed after this thread and fixes the problem.

/Gardener
www.rollspel.nu

#33496 11/07/2002 3:46 PM
Anonymous
Unregistered
Anonymous
Unregistered
Thank you - I have asked Dave Dreezer, the product manager to comment on this one.

Regards,

Brett Harris
Infopop Corporation


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 552 guests, and 173 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)