X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_curl.c;h=377a0ea43d8398743de8bc9d0b29b6899df3f494;hb=dedad9f35cbeaee56e7cca145e378cc6548198e3;hp=ae8eb556872f5dd5b71452954550ac5ab69773de;hpb=a07b79b1871054ca17e48b69445b4dc201f24662;p=m6w6%2Fext-http diff --git a/php_http_curl.c b/php_http_curl.c index ae8eb55..377a0ea 100644 --- a/php_http_curl.c +++ b/php_http_curl.c @@ -863,7 +863,7 @@ static STATUS set_options(php_http_request_t *h, HashTable *options) zval *urlenc_cookies = NULL; /* check whether cookies should not be urlencoded; default is to urlencode them */ if ((!(urlenc_cookies = get_option(&curl->options.cache, options, ZEND_STRS("encodecookies"), IS_BOOL))) || Z_BVAL_P(urlenc_cookies)) { - if (SUCCESS == php_http_url_encode_hash_recursive(HASH_OF(zoption), &curl->options.cookies, "; ", lenof("; "), NULL, 0 TSRMLS_CC)) { + if (SUCCESS == php_http_url_encode_hash_ex(HASH_OF(zoption), &curl->options.cookies, ZEND_STRS(";"), ZEND_STRS("="), NULL, 0 TSRMLS_CC)) { php_http_buffer_fix(&curl->options.cookies); curl_easy_setopt(ch, CURLOPT_COOKIE, curl->options.cookies.data); }