diff options
author | foobar <sniper@php.net> | 2002-07-11 02:31:38 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-07-11 02:31:38 +0000 |
commit | 0790c58f96b769edcfe11568568a90920dd53747 (patch) | |
tree | d7a67fd80e9b37b6965c946d12713ac02df228e2 /ext/curl | |
parent | a17d934957f8c5356ab0cad438174b61207501f6 (diff) | |
download | php-git-0790c58f96b769edcfe11568568a90920dd53747.tar.gz |
Fixed bug: #18250
Diffstat (limited to 'ext/curl')
-rw-r--r-- | ext/curl/curl.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/curl/curl.c b/ext/curl/curl.c index 8cee373786..b88334217a 100644 --- a/ext/curl/curl.c +++ b/ext/curl/curl.c @@ -797,17 +797,16 @@ PHP_FUNCTION(curl_setopt) postval = Z_STRVAL_PP(current); if (*postval == '@') { - error = curl_formadd(&first, - &last, + error = curl_formadd(&first, &last, CURLFORM_COPYNAME, string_key, - CURLFORM_NAMELENGTH, string_key_len, - CURLFORM_FILE, ++postval, + CURLFORM_NAMELENGTH, string_key_len - 1, + CURLFORM_FILE, ++postval, CURLFORM_END); } else { error = curl_formadd(&first, &last, CURLFORM_COPYNAME, string_key, - CURLFORM_NAMELENGTH, string_key_len, + CURLFORM_NAMELENGTH, string_key_len - 1, CURLFORM_PTRCONTENTS, postval, CURLFORM_CONTENTSLENGTH, Z_STRLEN_PP(current), CURLFORM_END); |