View Issue Details

IDProjectCategoryView StatusLast Update
0002120libmicrohttpdpostprocessorpublic2012-01-31 16:52
Reporterwoof Assigned ToChristian Grothoff Due Date
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.9.18 
Fixed in Version0.9.19 
Summary0002120: MIME fails when boundary is defined in quotes
DescriptionSome 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 ReproducePost multipart with quotes around the boundary definition
Additional InformationThere'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;
TagsNo tags attached.

Activities

Christian Grothoff

2012-01-27 10:02

manager   ~0005394

Fixed in SVN 19471.

Issue History

Date ModifiedUsernameFieldChange
2012-01-26 23:23woofNew Issue
2012-01-27 10:02Christian GrothoffNote Added: 0005394
2012-01-27 10:02Christian GrothoffStatusnew => resolved
2012-01-27 10:02Christian GrothoffFixed in Version => 0.9.19
2012-01-27 10:02Christian GrothoffResolutionopen => fixed
2012-01-27 10:02Christian GrothoffAssigned To => Christian Grothoff
2012-01-31 16:52Christian GrothoffStatusresolved => closed
2013-05-06 10:53Christian GrothoffCategorypostprocessor => libmicrohttpd postprocessor
2024-01-21 12:24Christian GrothoffCategorylibmicrohttpd postprocessor => postprocessor