patch: handling of boundary strings

From: <>
Date: Fri, 6 Aug 1999 21:48:34 +0200 (MET DST)
Message-Id: <>

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):


Source: parse.c:1305

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


                  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