Re: multiline HTTP headers support in header()
| From: | Stas Malyshev | Date: | Thu, 03 Jul 2014 08:24:39 +0000 |
| Subject: | Re: multiline HTTP headers support in header() | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75202@lists.php.net to get a copy of this message | ||
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.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/