note 124891 added to function.filter-var

From: Date: Wed, 08 Apr 2020 06:33:29 +0000
Subject: note 124891 added to function.filter-var
Groups: php.notes 
Request: Send a blank email to php-notes+get-214430@lists.php.net to get a copy of this message
I won't recommend using this function to validate email addresses on a normal website. The problem is that in accordance with RFC 3696 (Application Techniques for Checking and Transformation of Names) the following email addresses would be considered as valid: customer/department=shipping@example.com $A12345@example.com !def!xyz%abc@example.com _somename@example.com "Abc@def"@example.com Hardly something I would accept in a live web app in 2020 :-/ ---- Server IP: 45.112.84.4 Probable Submitter: 103.51.167.36 (proxied: 178.255.154.107) ---- Manual Page -- http://php.net/manual/en/function.filter-var.php Edit -- https://master.php.net/note/edit/124891 Del: integrated -- https://master.php.net/note/delete/124891/integrated Del: useless -- https://master.php.net/note/delete/124891/useless Del: bad code -- https://master.php.net/note/delete/124891/bad+code Del: spam -- https://master.php.net/note/delete/124891/spam Del: non-english -- https://master.php.net/note/delete/124891/non-english Del: in docs -- https://master.php.net/note/delete/124891/in+docs Del: other reasons-- https://master.php.net/note/delete/124891 Reject -- https://master.php.net/note/reject/124891 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214430) next »