Re: multiline HTTP headers support in header()

From: Date: Thu, 03 Jul 2014 10:11:24 +0000
Subject: Re: multiline HTTP headers support in header()
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-75208@lists.php.net to get a copy of this message
On Thu, Jul 3, 2014 at 4:24 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote: > Hi! > > > Or, check for NUL byte first and reject the whole thing if present; then > > continue with strpbrk() :) > > To check for nul, you need to scan the whole string. If you're already > doing this, you don't need strpbrk anymore. > Right, with that in mind we might as well keep the current loop and just break at those three "bad" characters :) > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > -- -- Tjerk

« previous php.internals (#75208) next »