Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75194 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56441 invoked from network); 3 Jul 2014 06:14:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2014 06:14:55 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.49 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.192.49 mail-qg0-f49.google.com Received: from [209.85.192.49] ([209.85.192.49:47078] helo=mail-qg0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/83-47713-DD4F4B35 for ; Thu, 03 Jul 2014 02:14:54 -0400 Received: by mail-qg0-f49.google.com with SMTP id f51so5631718qge.8 for ; Wed, 02 Jul 2014 23:14:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kdieXyI181Z38CZaFS0N69wxjXQKNTqpjddtOK37Lus=; b=KgfD09AuEZGnPEr8DePbuoSqcShgG2sBqx25RK/tZb4nWGr11cP+XjMsH1INo9ox6H O7RVqClv5Nw6Q30OzpZA+0SjGpCeIelw+mukJ1TQ+Ny++uVwh3wBHSSsVKShuTGYRJoe r7nLNVqFq5ATDzDnlT5Fe05GtzzLRSBKVVwCfyI0nFeQ0glaqcJyfMxd4rLvMEJXfime gwGCxKTvX6tZ6ZkXemh7k/d2Q+oBC4Fc+muSWj3Jqp0YuM5ITE4Ak0EBG/LcLshRvD41 GnBUOqEYMQW2btfEe4etid1qFaVOa+5/RjsMD6MlBa5aRysa8lX+5kTpTwVUzTarC+Bv AVLQ== MIME-Version: 1.0 X-Received: by 10.224.130.5 with SMTP id q5mr4070990qas.72.1404368091582; Wed, 02 Jul 2014 23:14:51 -0700 (PDT) Received: by 10.140.47.175 with HTTP; Wed, 2 Jul 2014 23:14:51 -0700 (PDT) In-Reply-To: <20140703060837.GB16494@openwall.com> References: <20140703003646.GA12662@openwall.com> <53B4AC6E.5050401@sugarcrm.com> <20140703012402.GA13015@openwall.com> <20140703060837.GB16494@openwall.com> Date: Thu, 3 Jul 2014 08:14:51 +0200 Message-ID: To: Solar Designer Cc: Adam Harvey , Andrea Faulds , Stas Malyshev , PHP internals , D0znpp Content-Type: multipart/alternative; boundary=001a11c2c4523b992004fd43eda3 Subject: Re: [PHP-DEV] multiline HTTP headers support in header() From: tyra3l@gmail.com (Ferenc Kovacs) --001a11c2c4523b992004fd43eda3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Jul 3, 2014 at 8:08 AM, Solar Designer wrote: > On Thu, Jul 03, 2014 at 07:36:26AM +0200, Ferenc Kovacs wrote: > > If I'm reading this correctly this would reintroduce > > https://bugs.php.net/bug.php?id=3D60227 > > No. > > > those checks aren't there to support header splitting but to prevent > them, > > as "\r\n" isn't the only separator which will cause browsers to split t= he > > header. > > Individual '\r' or '\n' may also separate headers in specific browsers, > yes. We should continue to disallow them as well. > > Adam's patch looks correct to me in this respect: strpbrk() returns > non-NULL when _any_ of the characters is found. > my bad, I blame morning. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a11c2c4523b992004fd43eda3--