gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19471 - in libmicrohttpd: . src/daemon


From: gnunet
Subject: [GNUnet-SVN] r19471 - in libmicrohttpd: . src/daemon
Date: Fri, 27 Jan 2012 11:01:51 +0100

Author: grothoff
Date: 2012-01-27 11:01:51 +0100 (Fri, 27 Jan 2012)
New Revision: 19471

Modified:
   libmicrohttpd/ChangeLog
   libmicrohttpd/src/daemon/postprocessor.c
Log:
-fixing #2120

Modified: libmicrohttpd/ChangeLog
===================================================================
--- libmicrohttpd/ChangeLog     2012-01-27 09:56:28 UTC (rev 19470)
+++ libmicrohttpd/ChangeLog     2012-01-27 10:01:51 UTC (rev 19471)
@@ -1,3 +1,7 @@
+Fri Jan 27 11:00:43 CET 2012
+       Fixed postprocessor failure for applications that enclosed boundary
+       in quotes (#2120). -woof
+
 Tue Jan 24 16:07:53 CET 2012
        Added configure check for sin_len in 'struct sockaddr' and adding
        code to initialize this field if it exists now. -CG

Modified: libmicrohttpd/src/daemon/postprocessor.c
===================================================================
--- libmicrohttpd/src/daemon/postprocessor.c    2012-01-27 09:56:28 UTC (rev 
19470)
+++ libmicrohttpd/src/daemon/postprocessor.c    2012-01-27 10:01:51 UTC (rev 
19471)
@@ -1,6 +1,6 @@
 /*
      This file is part of libmicrohttpd
-     (C) 2007, 2009 Daniel Pittman and Christian Grothoff
+     (C) 2007, 2009, 2010, 2011, 2012 Daniel Pittman and Christian Grothoff
 
      This library is free software; you can redistribute it and/or
      modify it under the terms of the GNU Lesser General Public
@@ -280,6 +280,12 @@
       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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]