Re: Better RFC conformance for FILTER_VALIDATE_URL
| From: | Kévin Dunglas | Date: | Wed, 12 Nov 2014 07:09:23 +0000 |
| Subject: | Re: Better RFC conformance for FILTER_VALIDATE_URL | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78876@lists.php.net to get a copy of this message | ||
Hi,
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?
Best regards,
2014-11-12 7:38 GMT+01:00 Yasuo Ohgaki <yohgaki@ohgaki.net>:
> Hi all,
>
> On Fri, Nov 7, 2014 at 6:48 AM, Sanford Whiteman <figureonecpr@gmail.com>
> wrote:
>
>> > FWIW, there *is* a practical in-use (de facto if nothing else)
>> convention of using _ in hosts for DKIM:
>>
>> _domainkey is actually in all the DKIM RFCs and in the formal STD 76,
>> see § 3.6.2.1. Namespace, so it's more than a convention!
>
>
> "_" is used for service name. Active Directory uses "_" a lot, for
> example. e.g. _tcp, _sites, _ldap, etc.
>
> https://tools.ietf.org/html/rfc2782
>
> Regards,
>
> --
> Yasuo Ohgaki
> yohgaki@ohgaki.net
>
--
Kévin Dunglas
http://dunglas.fr