Re: Sanitize filters

From: Date: Thu, 06 Oct 2022 13:44:55 +0000
Subject: Re: Sanitize filters
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-118768@lists.php.net to get a copy of this message
> Le 6 oct. 2022 à 10:19, Rowan Tommins <rowan.collins@gmail.com> a écrit : > > You described FILTER_VALIDATE_EMAIL as "notorious for being next to useless"; that > gives us two possibilities: > > a) A new function will be just as useless, because it will be based on the same implementation > b) There is a better implementation out there, which we should start using in ext/filter right > now > > My gut feel is that (a) is true, and there is no point considering what a new function would be > called, because we don't know how to implement it. Hi, While it may be difficult to validate an email according to some IETF’s RFC, the HTML standard has pragmatically adopted a pattern (used to validate <input type=email> fields) that is both readable and suitable for most practical purposes. See: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address <https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address> —Claude

« previous php.internals (#118768) next »