View Full Version : Bug in Advanced Email Check
Reginald
12-26-2002, 10:01 AM
There's a small bug in the Advanced Email Check script at http://javascriptkit.com/script/script2/acheck.shtml. Well, it's not really a bug, it's more like a glitch. When you enter an email address with a slash, it says that the email address is invalid. That's not correct. Email addresses with slashes are valid email addresses. They are not very frequently used and not many people know this. So: anything/here@email.com is a valid email address!
R.
whammy
12-26-2002, 12:57 PM
How sure are you? :) If that's the case I'll need to update my regular expression as well - having already updated it to allow stuff like + and '...
Reginald
12-27-2002, 02:43 PM
Hey whammy,
What do you mean? You mean how sure I am "/" is allowed in an email addy? I'm quite sure as I received an email once from a company with a slash in it.
Does that mean you have the change your regular expressions (whatever that may be and presuming you are the one that wrote that js?): no, I don't think so. Come to think of it, people using slashes in their email addy probably don't have any business near a computer anyway! :D (I'm kidding!)
R.
redhead
12-27-2002, 02:53 PM
Originally posted by Reginald
I'm quite sure as I received an email once from a company with a slash in it.
if the email is sent through a server side process you can put anything in an email address though...
krycek
12-27-2002, 05:23 PM
Slashes are not valid email address characters, according to the relevant ISO standard.
I do believe that slashes are used to denote alternatives; e.g. "joe/dave" would accept either joe or dave. However I doubt this is recommended practice as I am not sure what web/email servers support it.
If anyone is interested, RFC822 is the relevant standard I believe.
::] krycek [::
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.