note 111692 added to filter.filters.validate

From: Date: Sun, 17 Mar 2013 20:22:30 +0000
Subject: note 111692 added to filter.filters.validate
Groups: php.notes 
Request: Send a blank email to php-notes+get-194102@lists.php.net to get a copy of this message
Regarding "partial" addresses with no . in the domain part, a comment in the source code (in ext/filter/logical_filters.c) justifies this rejection thus: * The regex below is based on a regex by Michael Rushton. * However, it is not identical. I changed it to only consider routeable * addresses as valid. Michael's regex considers a@b a valid address * which conflicts with section 2.3.5 of RFC 5321 which states that: * * Only resolvable, fully-qualified domain names (FQDNs) are permitted * when domain names are used in SMTP. In other words, names that can * be resolved to MX RRs or address (i.e., A or AAAA) RRs (as discussed * in Section 5) are permitted, as are CNAME RRs whose targets can be * resolved, in turn, to MX or address RRs. Local nicknames or * unqualified names MUST NOT be used. ---- Server IP: 69.147.83.199 Probable Submitter: 81.101.201.26 ---- Manual Page -- http://php.net/manual/en/filter.filters.validate.php Edit -- https://master.php.net/note/edit/111692 Del: integrated -- https://master.php.net/note/delete/111692/integrated Del: useless -- https://master.php.net/note/delete/111692/useless Del: bad code -- https://master.php.net/note/delete/111692/bad+code Del: spam -- https://master.php.net/note/delete/111692/spam Del: non-english -- https://master.php.net/note/delete/111692/non-english Del: in docs -- https://master.php.net/note/delete/111692/in+docs Del: other reasons-- https://master.php.net/note/delete/111692 Reject -- https://master.php.net/note/reject/111692 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194102) next »