[php-src] PR #22651: Disallow newlines in CURLOPT_HTTPHEADER
| From: | Sjord | Date: | Thu, 09 Jul 2026 09:38:53 +0000 |
| Subject: | [php-src] PR #22651: Disallow newlines in CURLOPT_HTTPHEADER | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36929@lists.php.net to get a copy of this message | ||
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.