svn commit: trunk/busybox/networking

vda at busybox.net vda at busybox.net
Mon Mar 17 12:58:24 UTC 2008


Author: vda
Date: 2008-03-17 05:58:19 -0700 (Mon, 17 Mar 2008)
New Revision: 21366

Log:
httpd: small fixlet for POST upload - skip
whitespace between "Content-length:" and number



Modified:
   trunk/busybox/networking/httpd.c


Changeset:
Modified: trunk/busybox/networking/httpd.c
===================================================================
--- trunk/busybox/networking/httpd.c	2008-03-17 09:37:24 UTC (rev 21365)
+++ trunk/busybox/networking/httpd.c	2008-03-17 12:58:19 UTC (rev 21366)
@@ -1977,7 +1977,7 @@
 				 && prequest != request_HEAD
 #endif
 				) {
-					tptr = iobuf + sizeof("Content-length:") - 1;
+					tptr = skip_whitespace(iobuf + sizeof("Content-length:") - 1);
 					if (!tptr[0])
 						send_headers_and_exit(HTTP_BAD_REQUEST);
 					/* not using strtoul: it ignores leading minus! */




More information about the busybox-cvs mailing list