patch: handling of boundary strings

From: <jose.kahan_at_w3.org_at_hypermail-project.org>
Date: Fri, 6 Aug 1999 21:48:34 +0200 (MET DST)
Message-Id: <199908061948.VAA01778_at_tuvalu.inrialpes.fr>


When the boundary is declared without quotes as in:

        Content-Type: multipart/mixed; boundary=unique-boundary-1

an extra "\n" is inserted in the boundary buffer (parse.c).

Here's a small patch to fix this up (sorry, can't do a diff as there are too many differences in my parse.c):

-Jose

Source: parse.c:1305

                  else
                    sscanf(boundary, "%[^;]", boundbuffer);

Patch:

                  else {
		    char *ptr;

                    sscanf(boundary, "%[^;]", boundbuffer);
		    /* JK: remove the end \n char */
		    ptr = strchr (boundbuffer, '\n');
		    if (ptr)
		      *ptr = '\0';
		  }
Received on Sat 14 Aug 1999 07:06:22 PM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:11 AM GMT GMT