W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

Bug in ComLine

From: Jeremy Bettis <jeremy@hksys.com>
Date: Tue, 19 Jan 1999 16:30:26 -0500 (EST)
Message-ID: <19990119152608.A22876@bane.hksys.com>
To: www-lib@w3.org
A line 464 in HTLine.c in the ComLine program there is a bug.
While it is processing the form command line options, it kills whitespace
inside of a form item i.e.:

w3c -form http://kjwelkrj "foo=bar" "baz=foo and bar"
This sends only foo=bar and baz=foo to the http server.

Here is the old lines 464-465:
        char * name = HTNextField(&string);
        char * value = HTNextField(&string);

And what I suggest:
        char * name = HTNextField(&string);
        char * value = string;

This fixes it for me.  Please put this in the base distribution please.

-Jeremy Bettis
jeremy@hksys.com
Received on Tuesday, 19 January 1999 16:33:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT