[GIT-PULLS] [php-src] PR #22651: Disallow newlines in CURLOPT_HTTPHEADER
[email protected] (Sjord)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <zhVQxhQoHbKKAC4z17IHvqsnUcJahjafUkF4FaOPFxs@main.internal.php.net> |
Pull Request: https://github.com/php/php-src/pull/22651 Author: Sjord It was possible to have multiple lines in a HTTP headers in a cURL request, which then get interpreted as multiple headers. This commit changes that to throw a ValueError when using newlines or carriage returns in a string passed as header.