Angel: Miss me? Lilah: Only in the sense of…no.

'Just Rewards (2)'


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


§ 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.


Jon B. - Jun 09, 2004 7:07:41 pm PDT #7942 of 10000
A turkey in every toilet -- only in America!

Betchya it's spaces or punctuation.

Betcha you're right. Although, isn't there a space between the name and the < to the left of the email? If so, it couldn't be spaces, right? Gotta be a period or something.


Karl - Jun 09, 2004 7:12:17 pm PDT #7943 of 10000
I adore all you motherfuckers so much -- PMM.

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

ita <ita@example.com> is a valid rfc822 address.
Jon B <jonb@somewhere.com> is also valid.
Jon B. <jonb@somewhere.com> is not -- unquoted periods are not allowed in the "user name" portion outside the <> pair.
"Jon B." <jonb@somewhere.com> is valid, however.

ita, try putting quotes around "Jon B." in your test, and see if it passes. If so, then your address parser is probably just obeying rfc822.


Katie M - Jun 09, 2004 7:12:54 pm PDT #7944 of 10000
I was charmed (albeit somewhat perplexed) by the fannish sensibility of many of the music choices -- it's like the director was trying to vid Canada. --loligo on the Olympic Opening Ceremonies

Here's a seemingly-out-of-nowhere request (which obviously is not urgent): Is there any way to make the highlighted text under whitefont any darker? I find the blue difficult to read.


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

Is there any way to make the highlighted text under whitefont any darker? I find the blue difficult to read.

I think that's your browser. The code just makes it white.

Thanks for that tip, Karl. Let me try.


Jon B. - Jun 09, 2004 7:19:56 pm PDT #7946 of 10000
A turkey in every toilet -- only in America!

That's a browser thing, not a code thing, Katie. No idea if there's a browser setting you could change for that...

t /not helpful

Y'know, I added a period to my username specifically to see if it would break things.... Glad to see it's still useful.