cURL
Haxx ad
libcurl
Automatically get a mirror near you





COMPARE PRICES:
Digital cameras, MP3 Players, Camcorders, Mobile phones, PDA, Computers, Electronics LCD monitors, Printers, Notebook, DVD Players, Motherboards, TV, ipod, Processors. See all...

Shopping cart software
Online collaboration software

SourceForge.net Logo

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: Newlines in multipart/form-data post

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 22 Apr 2004 17:21:28 +0200 (CEST)

On Thu, 22 Apr 2004, Robert Marlow wrote:

> Upgraded to v7.11.1 with the same symptoms.
>
> Here's an example line (paraphrased of course):

Aaaaaah! You are of course 100% correct, and here's the patch that removes
this silly behavior!

diff -u -r1.253 main.c
--- src/main.c 14 Apr 2004 12:00:53 -0000 1.253
+++ src/main.c 22 Apr 2004 15:25:35 -0000
@@ -767,7 +767,7 @@
   contents = malloc(strlen(input));
   contents[0] = '\000';

- if(1 <= sscanf(input, "%255[^=]=%[^\n]", name, contents)) {
+ if(1 <= sscanf(input, "%255[^=]=%s", name, contents)) {
     /* the input was using the correct format */
     contp = contents;

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-04-22

These mail archives are generated by hypermail.

donate! Page updated October 16, 2006.
web site info