patch: handling of boundary strings

---------

From: jose.kahan@w3.org
Date: Fri Aug 06 1999 - 14:48:34 CDT


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';
                  }


---------

This archive was generated by hypermail 2.1.5.