|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-08-29 13:26 UTC] olaf at sevenval dot de
In Curl.php around line 316 multiple cookies are concatenated with newline. Shold be semicolon:
if (isset($this->cookies)) {
foreach ($this->cookies as $name => $value) {
$cookie_data .= urlencode($name) . ": " .\ urlencode($value);
$cookie_data .= ";"; // This is correct, before it was "\n"
}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 16:00:02 2025 UTC |
line 319: $ret = curl_setopt($ch, CURLOPT_COOKIE, $cookie_data); may cause a warning, if cookies is an empty array. Better: if(!empty($cookie_data){ $ret = curl_setopt($ch, CURLOPT_COOKIE, $cookie_data); }