Re: Better RFC conformance for FILTER_VALIDATE_URL

From: Date: Wed, 12 Nov 2014 09:41:14 +0000
Subject: Re: Better RFC conformance for FILTER_VALIDATE_URL
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-78879@lists.php.net to get a copy of this message
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

« previous php.internals (#78879) next »