View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002120 | libmicrohttpd | postprocessor | public | 2012-01-27 00:23 | 2012-01-31 17:52 |
Reporter | woof | Assigned To | Christian Grothoff | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.9.18 | ||||
Fixed in Version | 0.9.19 | ||||
Summary | 0002120: MIME fails when boundary is defined in quotes | ||||
Description | Some applications (e.g. SoapUI) surround a boundary definition in quotes, e.g. Content-Type: multipart/form-date; boundary="----=_Part_19_17577811.1327535080533" The boundary is then missed because, of course, it doesn't have the quotes. | ||||
Steps To Reproduce | Post multipart with quotes around the boundary definition | ||||
Additional Information | There's an easy fix: Index: postprocessor.c =================================================================== --- postprocessor.c~ +++ postprocessor.c @@ -280,6 +280,11 @@ blen = strlen (boundary); if ((blen == 0) || (blen * 2 + 2 > buffer_size)) return NULL; /* (will be) out of memory or invalid boundary */ + if ((boundary[0] == '"') && (boundary[blen - 1] == '"')) + { /* remove enclosing quotes */ + ++boundary; + blen -= 2; + } } else blen = 0; | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2012-01-27 00:23 | woof | New Issue | |
2012-01-27 11:02 | Christian Grothoff | Note Added: 0005394 | |
2012-01-27 11:02 | Christian Grothoff | Status | new => resolved |
2012-01-27 11:02 | Christian Grothoff | Fixed in Version | => 0.9.19 |
2012-01-27 11:02 | Christian Grothoff | Resolution | open => fixed |
2012-01-27 11:02 | Christian Grothoff | Assigned To | => Christian Grothoff |
2012-01-31 17:52 | Christian Grothoff | Status | resolved => closed |
2013-05-06 12:53 | Christian Grothoff | Category | postprocessor => libmicrohttpd postprocessor |
2024-01-21 13:24 | Christian Grothoff | Category | libmicrohttpd postprocessor => postprocessor |