Giles, help! He's going to scold me!

Buffy ,'Never Leave Me'


Buffistas Building a Better Board  

Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.

To-do list


Gus - Jun 09, 2004 6:15:32 pm PDT #7932 of 10000
Bag the crypto. Say what is on your mind.

I do regex.


tommyrot - Jun 09, 2004 6:30:27 pm PDT #7933 of 10000
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

The problem's not with regex. The function with the regex test was getting passed the user name, not the user email.

I'll have more details after X-Men is over.


§ ita § - Jun 09, 2004 6:34:56 pm PDT #7934 of 10000
Well not canonically, no, but this is transformative fiction.

The function with the regex test was getting passed the user name, not the user email.

I'll go dig into the code, but since it seems to think "ita" is a valid e-mail address, then we do have a problem with the regex anyway.

So thanks, Gus.


Gus - Jun 09, 2004 6:37:14 pm PDT #7935 of 10000
Bag the crypto. Say what is on your mind.

Cool. Point me at it, via the profile addy...


tommyrot - Jun 09, 2004 6:38:27 pm PDT #7936 of 10000
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

But I can use the form on buffistas.org, but not sql.buffistas.net. Maybe the function is getting passed the email address on buffistas.org.


§ ita § - Jun 09, 2004 6:38:35 pm PDT #7937 of 10000
Well not canonically, no, but this is transformative fiction.

What gets passed to the validation is "$_user->name <$_user->email>"

The regex is supposed to be able to accept "Jon. B <jonb@whatever.com>" as a valid e-mail address. It is not. However, it likes "ita <ita@wherever.com>" just fine. Which is why the problem is not in what's passed, but in how it's parsed.


§ ita § - Jun 09, 2004 6:39:31 pm PDT #7938 of 10000
Well not canonically, no, but this is transformative fiction.

Maybe the function is getting passed the email address on buffistas.org.

It's exactly the same code, tommyrot. What's different is your username, and your e-mail address. Register at .net with tommyrot and see if it works.

eta: I can send e-mail to the admins at .net just fine


Jon B. - Jun 09, 2004 6:49:15 pm PDT #7939 of 10000
A turkey in every toilet -- only in America!

The problem looks like when the form loads, the replyto field on the form has a vaule of the user name and the user email address, when it only needs to have the email address. When the user submist the form, both the user name and the user email gets posted to the server, causing the email validity testing function to return false.

That's how I remember it. Why it doesn't fail sometimes, I dunno. In any case, validating against user->email only should do the trick.


tommyrot - Jun 09, 2004 6:52:04 pm PDT #7940 of 10000
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

OK, I switched the test email.php back to the way it was and added a debugging line. On the broken test version, the testing function is only looking at the user name, not the user name and user email. I don't yet know why.


§ ita § - Jun 09, 2004 7:03:51 pm PDT #7941 of 10000
Well not canonically, no, but this is transformative fiction.

In any case, validating against user->email only should do the trick.

Yes, but if Gus can help us fix the regex (I have a version in my inbox already) simply, we might as well go with that.

Why it doesn't fail sometimes

Betchya it's spaces or punctuation.