Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77424 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78030 invoked from network); 22 Sep 2014 07:04:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2014 07:04:02 -0000 Authentication-Results: pb1.pair.com header.from=dunglas@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dunglas@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.49 as permitted sender) X-PHP-List-Original-Sender: dunglas@gmail.com X-Host-Fingerprint: 209.85.215.49 mail-la0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:33189] helo=mail-la0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/B0-08225-FD9CF145 for ; Mon, 22 Sep 2014 03:04:00 -0400 Received: by mail-la0-f49.google.com with SMTP id pn19so6010175lab.8 for ; Mon, 22 Sep 2014 00:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=fAQhtyS34lI1bXvPIHyNRiyck25wvXBDn48Mk3wqxBs=; b=duYyB0E9snwqB25eLO9K97xnZWK4LEJViUByD46IYWfnyGgcFE1QmsS5PYy6wFyl9a Cbk2H1ADBmEyflJgUQ7aCSolGu0qqU3yHsEHOSXyJafzlrt/Nao39Zaxb7y93lMhvMX3 yN0KgwC8u62OBv02diFdc6yyQNkp2oqefBoF7Ss2THiqm3oCDnCIlL7TMRI2Zl3SDlYo VDhl0lgloJpg3vCMP2+DemaBVLBa/Fmho4FmJOLB9GKLxV/k0okCvApo8T6/uFvDxBKj 2nbougF5gZheLt7vNi6uGbmNPXwHBUHcyVzYo7rwNDzbim3Lx+E9dr0OsoSwO+cqwRvC +PZQ== X-Received: by 10.152.28.134 with SMTP id b6mr23617951lah.33.1411369436214; Mon, 22 Sep 2014 00:03:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.161.164 with HTTP; Mon, 22 Sep 2014 00:03:36 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Sep 2014 09:03:36 +0200 Message-ID: To: Florian Margaine Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e0160a638e47c490503a20d30 Subject: Re: [PHP-DEV] #68049 filter_var echo wrong result for a url From: dunglas@gmail.com (=?UTF-8?Q?K=C3=A9vin_Dunglas?=) --089e0160a638e47c490503a20d30 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Some browsers do. Some versions of IE are buggy when the URL include underscores: http://stackoverflow.com/questions/794243/internet-explorer-ignores-cookies= -on-some-domains-cannot-read-or-set-cookies I think that filter_var must follow the RFC by default. Maybe can we add 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 cannot > 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* > --=20 K=C3=A9vin Dunglas Consultant et d=C3=A9veloppeur freelance http://dunglas.fr T=C3=A9l. : 06 60 91 20 20 --089e0160a638e47c490503a20d30--