49 |
|
|
50 |
if (strncmp(line, "Content-Type:", 13)) |
if (strncmp(line, "Content-Type:", 13)) |
51 |
return; |
return; |
52 |
|
|
53 |
|
/* Downcase the string to help search for boundary */ |
54 |
safe_strcpy(boundary_buf, line); |
safe_strcpy(boundary_buf, line); |
55 |
change_to_lower(boundary_buf); |
change_to_lower(boundary_buf); |
56 |
p = strstr(boundary_buf, "boundary="); |
p = strstr(boundary_buf, "boundary="); |
57 |
if (!p) |
if (!p) |
58 |
return; |
return; |
59 |
|
/* Now use the unaltered string. P still points past the |
60 |
|
`boundary=' */ |
61 |
|
safe_strcpy(boundary_buf, line); |
62 |
p += 9; |
p += 9; |
63 |
if (*p == '"') { |
if (*p == '"') { |
64 |
char *q = strchr(++p, '"'); |
char *q = strchr(++p, '"'); |