Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77431 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88859 invoked from network); 22 Sep 2014 07:29:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2014 07:29:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=florian@margaine.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=florian@margaine.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain margaine.com from 209.85.213.177 cause and error) X-PHP-List-Original-Sender: florian@margaine.com X-Host-Fingerprint: 209.85.213.177 mail-ig0-f177.google.com Received: from [209.85.213.177] ([209.85.213.177:51770] helo=mail-ig0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/23-08225-BBFCF145 for ; Mon, 22 Sep 2014 03:28:59 -0400 Received: by mail-ig0-f177.google.com with SMTP id h3so2210264igd.4 for ; Mon, 22 Sep 2014 00:28:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=D+fiO7SaW5+noO08x1/f7R5NK87+3/PoRauGYJAYpbU=; b=e0H5UOlV+Y/FzlihYtmyKIl07F5y0iNCSmbUlcEHghKV4F4xnYRGc8GoaF43u/YzHL khcFtBZmsfD0eUaFc6e+G7RihHo1OpXh5pVBHZyKcJRkEMEHjFFW5F+OVikyS/NDpQuC K31s/iQE0JjnuL2lCb5BBOHin8eco6E6qWNcimBSabFKmjZBtlSbUAKpBF6KszIrnz53 UtoyptKjZWTl59piZzVZVt/b6hVFs0EYJ2cDLkLYhXoyrNkXRQiO0c51m5dytGDA0M5s aESFhelwLpDvb+plYY2wy2YxPAUZ4j7TmzCwy8p4Xy7ARqt3+usQo2zFOGrctGCeOZvf Wddw== X-Gm-Message-State: ALoCoQmBEXeFcFB/sl1CfaO7XxkSEShACBkeB6Z7coMikfQaLJheqVUfTNELoxSzSAobB7g4Y6k8 X-Received: by 10.50.79.197 with SMTP id l5mr12545542igx.12.1411370935952; Mon, 22 Sep 2014 00:28:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.41.20 with HTTP; Mon, 22 Sep 2014 00:28:35 -0700 (PDT) X-Originating-IP: [82.247.184.175] In-Reply-To: References: Date: Mon, 22 Sep 2014 09:28:35 +0200 Message-ID: To: =?UTF-8?Q?K=C3=A9vin_Dunglas?= Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e013cc16848c85e0503a2676c Subject: Re: [PHP-DEV] #68049 filter_var echo wrong result for a url From: florian@margaine.com (Florian Margaine) --089e013cc16848c85e0503a2676c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sounds like a great idea! Don't forget to update https://bugs.php.net/bug.php?id=3D68049 when it'll be done. Regards, *Florian Margaine* On Mon, Sep 22, 2014 at 9:20 AM, K=C3=A9vin Dunglas wro= te: > I've recently proposed a refactoring of FILTER_VALIDATE_URL: > https://github.com/php/php-src/pull/826 > I can easily add the support of this new flag is everyone agree. > > 2014-09-22 9:09 GMT+02:00 Florian Margaine : > >> Oh, IE. *sigh* >> >> Adding a new flag sounds like a good idea indeed, >> `FILTER_VALIDATE_UNCOMPLIANT_URL` sounds good enough? >> >> I guess it should accept underscores and domain names starting with >> numbers too. >> >> Regards, >> >> *Florian Margaine* >> >> P.S: sorry Kevin for the double mail. >> Le 22 sept. 2014 09:03, "K=C3=A9vin Dunglas" a =C3= =A9crit : >> >>> Some browsers do. Some versions of IE are buggy when the URL include >>> underscores: >>> http://stackoverflow.com/questions/794243/internet-explorer-ignores-coo= kies-on-some-domains-cannot-read-or-set-cookies >>> >>> >>> I think that filter_var must follow the RFC by default. Maybe can we ad= d >>> a flag to allow malformed URL in use in the wild? >>> >>> >>> >>> 2014-09-21 10:42 GMT+02:00 Florian Margaine : >>> >>>> Hi, >>>> >>>> According to https://bugs.php.net/bug.php?id=3D51192 , valid URLs cann= ot >>>> contain underscores. >>>> >>>> The following bug was reported a couple days ago: >>>> https://bugs.php.net/bug.php?id=3D68049 >>>> >>>> The thing is, browsers *do* accept the underscore in URLs. Should the >>>> rfc3986 be >>>> respected, or >>>> should PHP be lenient like browsers and accept more? >>>> >>>> Regards, >>>> >>>> *Florian Margaine* >>>> >>> >>> >>> >>> -- >>> K=C3=A9vin Dunglas >>> Consultant et d=C3=A9veloppeur freelance >>> >>> http://dunglas.fr >>> T=C3=A9l. : 06 60 91 20 20 >>> >> > > > -- > K=C3=A9vin Dunglas > Consultant et d=C3=A9veloppeur freelance > > http://dunglas.fr > T=C3=A9l. : 06 60 91 20 20 > --089e013cc16848c85e0503a2676c--