Re: removing http line folding support?

From: Date: Wed, 04 Feb 2015 09:01:42 +0000
Subject: Re: removing http line folding support?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-81785@lists.php.net to get a copy of this message
On 04/02/2015 09:52, Stanislav Malyshev wrote:
Hi!
Don't we prevent that already? http://lxr.php.net/xref/PHP_5_6/main/SAPI.c#749
I'm not sure what you meant by "that", but the code you linked to allows multi-line headers according to RFC 2616 - this is what comment in line 750 means. I propose to remove this (of course, no newline chars will be allowed too as they are allowed only to support RFC 2616).
How about replacing \r and \n with spaces and throwing E_DEPRECATED instead? Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/

« previous php.internals (#81785) next »