diff options
Diffstat (limited to 'src/daemon/postprocessor.c')
-rw-r--r-- | src/daemon/postprocessor.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/daemon/postprocessor.c b/src/daemon/postprocessor.c index 4c906439..966630d8 100644 --- a/src/daemon/postprocessor.c +++ b/src/daemon/postprocessor.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libmicrohttpd | 2 | This file is part of libmicrohttpd |
3 | (C) 2007, 2009 Daniel Pittman and Christian Grothoff | 3 | (C) 2007, 2009, 2010, 2011, 2012 Daniel Pittman and Christian Grothoff |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Lesser General Public | 6 | modify it under the terms of the GNU Lesser General Public |
@@ -280,6 +280,12 @@ MHD_create_post_processor (struct MHD_Connection *connection, | |||
280 | blen = strlen (boundary); | 280 | blen = strlen (boundary); |
281 | if ((blen == 0) || (blen * 2 + 2 > buffer_size)) | 281 | if ((blen == 0) || (blen * 2 + 2 > buffer_size)) |
282 | return NULL; /* (will be) out of memory or invalid boundary */ | 282 | return NULL; /* (will be) out of memory or invalid boundary */ |
283 | if ( (boundary[0] == '"') && (boundary[blen - 1] == '"') ) | ||
284 | { | ||
285 | /* remove enclosing quotes */ | ||
286 | ++boundary; | ||
287 | blen -= 2; | ||
288 | } | ||
283 | } | 289 | } |
284 | else | 290 | else |
285 | blen = 0; | 291 | blen = 0; |