[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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.