Re: Better RFC conformance for FILTER_VALIDATE_URL

From: Date: Wed, 12 Nov 2014 18:10:16 +0000
Subject: Re: Better RFC conformance for FILTER_VALIDATE_URL
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-78886@lists.php.net to get a copy of this message
Hi Yasuo, I've not changed (and even read) the email validator. I'll take a look at it. 2014-11-12 10:41 GMT+01:00 Yasuo Ohgaki <yohgaki@ohgaki.net>: > Hi Kevin, > > On Wed, Nov 12, 2014 at 4:09 PM, Kévin Dunglas <dunglas@gmail.com> wrote: > >> I'll change my PR according to the RFC I've quoted earlier: >> - check for valid characters (excluding underscore) only when >> FILTER_FLAG_HOSTNAME is set >> - allow any character but check lengths by default >> - use FILTER_FLAG_HOSTNAME to validate URLs >> >> What do you think about that? >> > > I haven't read diff closely, but it seems ok to me. > How email domain is checked? I cannot see changes for it from the diff. > > Validating host correctly is difficult, I would like to have your PR. > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > -- Kévin Dunglas http://dunglas.fr

« previous php.internals (#78886) next »