note 93004 added to function.stripos
| From: | vgiralt at osu1 dot php dot net | Date: | Wed, 19 Aug 2009 09:38:14 +0000 |
| Subject: | note 93004 added to function.stripos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159629@lists.php.net to get a copy of this message | ||
The mail validator example is NON CONFORMANT with SMTP mail RFCs. Valid characters for Internet
e-mail address are more than the ones listed here. Implementing such lame validator is a big
disservice to the whole Internet.
Those interested can read RFC 5322. In short, the valid characters are different on both sides of
the @ sign, so, before applying this fast technique the address should be exploded into the two side
strings, and then, use different valid character strings for the local-part and the domain.
A local part can be any alphabetic or digit US-ASCII character plus
"!#$%&'*+-/=?^_`{|}~", and then, if it is enclosed in double-quotes ("), it
can be any US-ASCII character except double-quote (") and back-slash(\).
The domain can be any printable US-ASCII characters not including "[", "]", or
"\".
And then, this could be overridden with the advent of internationalized domains, that can use UTF-8
character sets.
Implementation of the validator is left as an exercise for the reader.
----
Server IP: 80.64.47.13
Probable Submitter: 80.38.252.251
----
Manual Page -- http://www.php.net/manual/en/function.stripos.php
Edit -- https://master.php.net/note/edit/93004
Del: integrated -- https://master.php.net/note/delete/93004/integrated
Del: useless -- https://master.php.net/note/delete/93004/useless
Del: bad code -- https://master.php.net/note/delete/93004/bad+code
Del: spam -- https://master.php.net/note/delete/93004/spam
Del: non-english -- https://master.php.net/note/delete/93004/non-english
Del: in docs -- https://master.php.net/note/delete/93004/in+docs
Del: other reasons-- https://master.php.net/note/delete/93004
Reject -- https://master.php.net/note/reject/93004
Search -- https://master.php.net/manage/user-notes.php