I've been looking through the forums and I haven't seen a topic related to this, so please forgive me if it's been brought up before and I missed it.
I have a few users who have an apostrophe (') in their name and thus their email address, but I'm noticing that wordpress doesn't seem to like that. I have gone into my database and corrected the problem, but if the user then tries to update their personal info, the page responds back that the "email address isn't correct." Is there a way, without hacking into the code, to make wordpress accept an apostrophe in a name/email address?
Hmm - are apostrophe's valid in email addresses?
Edited to add: Yes they are, as long as the "local part" is encapsulated in quotes.... so steve_o'rouke@my.domain.com would not be valid but "steve_o'rouke"@my.domain.com would be.
I think that's what the RFC means
lunabyte
Member
Posted 17 years ago #
Not that I'm aware of.
Period's are, like fred.jones, but AFAIK, apostrophe's are not valid email characters.
GAH> And there you are, using them willy-nilly everywhere!
*apostrophe: used to show possesion or contractions. NOT for plurals, as in more than one. *
/ end grammar nazi
:D ;P
Sorry - it has been a long day! ;-)
lunabyte
Member
Posted 17 years ago #
Just give her an answer like this:
"Yes, Mom."
And she'll go away. ;)
he he he
I should know better - my Godfather was a teacher, my parents in law were both teachers (in Maine), my sister in law is a teacher (in Maine), my step daughter is also a teacher (also in Maine) and my dad (in England) was also a teacher during his rather broad range of jobs.
lunabyte
Member
Posted 17 years ago #
This is crazy, but check this out.
RFC 2822:
...the local-part of the e-mail may use any of these ASCII characters:
* Uppercase and lowercase letters
* The digits 0 through 9
* The characters,! # $ % & ' * + - / =? ^ _ ` { ¦ } ~
* The character "." provided that it is not the first or last character in the local-part.
You can read the full specification at http://tools.ietf.org/html/2822
It's nuts, but "technically" it's valid. I'm not sure about widely accepted, which is a completely different topic.
It is nuts - and I bet 99% of applications wont accept quoted "local" parts of an email.
So as I said in an earlier post steve_o'rouke@my.domain.com would not be valid but "steve_o'rouke"@my.domain.com would be.
The question is - has anyone ever checked if WPMU accepts quoted local parts in email addresses
(Steve - I teach my kids at home and I'm next door to Maine. ;) )
Quick answer to that, SteveAtty, no. I tried to put in "Joanne.D'Angelo"@domain.com, but no luck. I guess if MU doesn't support it I'll have to adjust the code.
Thanks!
John - you could try raising a Trac for it. Not sure it if will get picked up but as its theoretically a "bug" they should. Does anyone know if WordPress itself can handle quoted local parts.
BTW have you tried escaping the ' using \ ?
so "Joanne.D\'Angelo"@domain.com
Steve, yeah, I tried to escape it and it still told me "Invalid Email Address". I'll open up a report for it.
moorezilla
Member
Posted 17 years ago #
*apostrophe: used to show possesion or contractions. NOT for plurals, as in more than one. *
/ end grammar nazi
Whoa! Now what do we have here, Madam Kettle? What, pray tell, does "possesion" mean? Grammar Nazis have to be careful lest misspellings sink their uboat fleet. Also, if you're lopping punctuation in with grammar, you simply can't neglect capitalization in your criticism; it's poor form.
Well played. :D I concede.
moorezilla
Member
Posted 17 years ago #
lol... say you'll still help me with languages like php!