View Issue Details

IDProjectCategoryView StatusLast Update
0002120libmicrohttpdpostprocessorpublic2012-01-31 17:52
Reporterwoof Assigned ToChristian Grothoff  
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 11:02

manager   ~0005394

Fixed in SVN 19471.

Issue History

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